diff --git a/src/main/java/org/openrewrite/java/migrate/maven/UseMavenCompilerPluginReleaseConfiguration.java b/src/main/java/org/openrewrite/java/migrate/maven/UseMavenCompilerPluginReleaseConfiguration.java index 3418750cb3..7eb6dbd316 100644 --- a/src/main/java/org/openrewrite/java/migrate/maven/UseMavenCompilerPluginReleaseConfiguration.java +++ b/src/main/java/org/openrewrite/java/migrate/maven/UseMavenCompilerPluginReleaseConfiguration.java @@ -59,7 +59,7 @@ public TreeVisitor getVisitor() { return new MavenIsoVisitor() { @Override public Xml.Tag visitTag(Xml.Tag tag, ExecutionContext ctx) { - final Xml.Tag t = super.visitTag(tag, ctx); + Xml.Tag t = super.visitTag(tag, ctx); if (!PLUGINS_MATCHER.matches(getCursor())) { return t; } diff --git a/src/main/java/org/openrewrite/java/migrate/util/OptionalNotEmptyToIsPresent.java b/src/main/java/org/openrewrite/java/migrate/util/OptionalNotEmptyToIsPresent.java index b317e7188f..769442eb8f 100644 --- a/src/main/java/org/openrewrite/java/migrate/util/OptionalNotEmptyToIsPresent.java +++ b/src/main/java/org/openrewrite/java/migrate/util/OptionalNotEmptyToIsPresent.java @@ -59,7 +59,7 @@ protected TreeVisitor getApplicableTest() { @Override protected TreeVisitor getVisitor() { - final MethodMatcher optionalIsPresentMatcher = new MethodMatcher(JAVA_UTIL_OPTIONAL_IS_EMPTY); + MethodMatcher optionalIsPresentMatcher = new MethodMatcher(JAVA_UTIL_OPTIONAL_IS_EMPTY); return new JavaVisitor() { @Override public Statement visitStatement(Statement s, ExecutionContext p) { diff --git a/src/main/java/org/openrewrite/java/migrate/util/OptionalNotPresentToIsEmpty.java b/src/main/java/org/openrewrite/java/migrate/util/OptionalNotPresentToIsEmpty.java index 9a8f5c3750..44a5586789 100644 --- a/src/main/java/org/openrewrite/java/migrate/util/OptionalNotPresentToIsEmpty.java +++ b/src/main/java/org/openrewrite/java/migrate/util/OptionalNotPresentToIsEmpty.java @@ -59,7 +59,7 @@ protected TreeVisitor getApplicableTest() { @Override protected TreeVisitor getVisitor() { - final MethodMatcher optionalIsPresentMatcher = new MethodMatcher(JAVA_UTIL_OPTIONAL_IS_PRESENT); + MethodMatcher optionalIsPresentMatcher = new MethodMatcher(JAVA_UTIL_OPTIONAL_IS_PRESENT); return new JavaVisitor() { @Override public Statement visitStatement(Statement s, ExecutionContext p) { diff --git a/src/test/java/org/openrewrite/java/migrate/maven/UseMavenCompilerPluginReleaseConfigurationTest.java b/src/test/java/org/openrewrite/java/migrate/maven/UseMavenCompilerPluginReleaseConfigurationTest.java index 1da9889156..2a967cb7c0 100644 --- a/src/test/java/org/openrewrite/java/migrate/maven/UseMavenCompilerPluginReleaseConfigurationTest.java +++ b/src/test/java/org/openrewrite/java/migrate/maven/UseMavenCompilerPluginReleaseConfigurationTest.java @@ -24,7 +24,7 @@ class UseMavenCompilerPluginReleaseConfigurationTest implements RewriteTest { @Override - public void defaults(final RecipeSpec spec) { + public void defaults(RecipeSpec spec) { spec.recipe(new UseMavenCompilerPluginReleaseConfiguration("11")); }