OptionalRules Refaster recipes
Recipe ID
tech.picnic.errorprone.refasterrules.OptionalRulesRecipesArtifact
org.openrewrite.recipe:rewrite-third-partyRefaster rules related to expressions dealing with Optionals.
Source.
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe tech.picnic.errorprone.refasterrules.OptionalRulesRecipesIf the recipe isn’t available locally, install it with:
mod config recipes jar install org.openrewrite.recipe:rewrite-third-party:0.44.0Definition
This recipe runs the following recipes in order.
- Refaster template
OptionalRules.OptionalEmptytech.picnic.errorprone.refasterrules.OptionalRulesRecipes$OptionalEmptyRecipe - Refaster template
OptionalRules.OptionalOfNullabletech.picnic.errorprone.refasterrules.OptionalRulesRecipes$OptionalOfNullableRecipe - Refaster template
OptionalRules.OptionalIsEmptytech.picnic.errorprone.refasterrules.OptionalRulesRecipes$OptionalIsEmptyRecipe - Refaster template
OptionalRules.OptionalIsPresenttech.picnic.errorprone.refasterrules.OptionalRulesRecipes$OptionalIsPresentRecipe - Refaster template
OptionalRules.OptionalOrElseThrowWithOptionaltech.picnic.errorprone.refasterrules.OptionalRulesRecipes$OptionalOrElseThrowWithOptionalRecipe - Refaster template
OptionalRules.OptionalOrElseThrowtech.picnic.errorprone.refasterrules.OptionalRulesRecipes$OptionalOrElseThrowRecipe - Refaster template
OptionalRules.OptionalEqualsOptionalOftech.picnic.errorprone.refasterrules.OptionalRulesRecipes$OptionalEqualsOptionalOfRecipe - Refaster template
OptionalRules.StreamsStreamFindFirsttech.picnic.errorprone.refasterrules.OptionalRulesRecipes$StreamsStreamFindFirstRecipe - Refaster template
OptionalRules.OptionalFilterIsPresenttech.picnic.errorprone.refasterrules.OptionalRulesRecipes$OptionalFilterIsPresentRecipe - Refaster template
OptionalRules.OptionalOrOrElseThrowtech.picnic.errorprone.refasterrules.OptionalRulesRecipes$OptionalOrOrElseThrowRecipe - Refaster template
OptionalRules.StreamFlatMapOptionalStreamtech.picnic.errorprone.refasterrules.OptionalRulesRecipes$StreamFlatMapOptionalStreamRecipe - Refaster template
OptionalRules.OptionalOrtech.picnic.errorprone.refasterrules.OptionalRulesRecipes$OptionalOrRecipe - Refaster template
OptionalRules.OptionalFiltertech.picnic.errorprone.refasterrules.OptionalRulesRecipes$OptionalFilterRecipe - Refaster template
OptionalRules.OptionalMapWithFunctiontech.picnic.errorprone.refasterrules.OptionalRulesRecipes$OptionalMapWithFunctionRecipe - Refaster template
OptionalRules.OptionalStreamtech.picnic.errorprone.refasterrules.OptionalRulesRecipes$OptionalStreamRecipe
Data tables
Structured output this recipe can produce.
- Source files that had resultsSource files that were modified by the recipe run.
org.openrewrite.table.SourcesFileResults - Source files that had search resultsSearch results that were found during the recipe run.
org.openrewrite.table.SearchResults - Source files that errored on a recipeThe details of all errors produced by a recipe run.
org.openrewrite.table.SourcesFileErrors - Recipe performanceStatistics used in analyzing the performance of recipes.
org.openrewrite.table.RecipeRunStats