Skip to content

Commit

Permalink
refactor: Don't use final on local variables
Browse files Browse the repository at this point in the history
Co-authored-by: Moderne <[email protected]>
  • Loading branch information
jkschneider and TeamModerne committed Feb 22, 2023
1 parent fc5d52d commit 2218919
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public TreeVisitor<?, ExecutionContext> getVisitor() {
return new MavenIsoVisitor<ExecutionContext>() {
@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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected TreeVisitor<?, ExecutionContext> getApplicableTest() {

@Override
protected TreeVisitor<?, ExecutionContext> getVisitor() {
final MethodMatcher optionalIsPresentMatcher = new MethodMatcher(JAVA_UTIL_OPTIONAL_IS_EMPTY);
MethodMatcher optionalIsPresentMatcher = new MethodMatcher(JAVA_UTIL_OPTIONAL_IS_EMPTY);
return new JavaVisitor<ExecutionContext>() {
@Override
public Statement visitStatement(Statement s, ExecutionContext p) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected TreeVisitor<?, ExecutionContext> getApplicableTest() {

@Override
protected TreeVisitor<?, ExecutionContext> getVisitor() {
final MethodMatcher optionalIsPresentMatcher = new MethodMatcher(JAVA_UTIL_OPTIONAL_IS_PRESENT);
MethodMatcher optionalIsPresentMatcher = new MethodMatcher(JAVA_UTIL_OPTIONAL_IS_PRESENT);
return new JavaVisitor<ExecutionContext>() {
@Override
public Statement visitStatement(Statement s, ExecutionContext p) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}

Expand Down

0 comments on commit 2218919

Please sign in to comment.