From 04264fd504b1f491c869e1a927764cf4c5d9b5a7 Mon Sep 17 00:00:00 2001 From: Knut Wannheden Date: Tue, 20 Feb 2024 16:32:43 +0100 Subject: [PATCH] Remove `private` modifiers from marker subtypes --- .../java/spring/RemoveMethodInvocationsVisitor.java | 2 +- .../spring/boot2/ReplaceDeprecatedEnvironmentTestUtils.java | 4 ++-- .../spring/boot2/search/IntegrationSchedulerPoolRecipe.java | 2 +- .../RequireExplicitSavingOfSecurityContextRepository.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/openrewrite/java/spring/RemoveMethodInvocationsVisitor.java b/src/main/java/org/openrewrite/java/spring/RemoveMethodInvocationsVisitor.java index a3d26c0a2..48952b846 100644 --- a/src/main/java/org/openrewrite/java/spring/RemoveMethodInvocationsVisitor.java +++ b/src/main/java/org/openrewrite/java/spring/RemoveMethodInvocationsVisitor.java @@ -239,7 +239,7 @@ public J.Block visitBlock(J.Block block, ExecutionContext ctx) { @Value @With - private static class ToBeRemoved implements Marker { + static class ToBeRemoved implements Marker { UUID id; static J2 withMarker(J2 j) { return j.withMarkers(j.getMarkers().addIfAbsent(new ToBeRemoved(randomId()))); diff --git a/src/main/java/org/openrewrite/java/spring/boot2/ReplaceDeprecatedEnvironmentTestUtils.java b/src/main/java/org/openrewrite/java/spring/boot2/ReplaceDeprecatedEnvironmentTestUtils.java index 522f4e9a3..4b860a3d1 100644 --- a/src/main/java/org/openrewrite/java/spring/boot2/ReplaceDeprecatedEnvironmentTestUtils.java +++ b/src/main/java/org/openrewrite/java/spring/boot2/ReplaceDeprecatedEnvironmentTestUtils.java @@ -60,12 +60,12 @@ public TreeVisitor getVisitor() { new FindEnvironmentTestUtilsVisitor()); } - private static final class ReplaceEnvironmentUtilsMarker implements Marker { + static final class ReplaceEnvironmentUtilsMarker implements Marker { private final String templateString; private final List parameters; private final UUID id; - private ReplaceEnvironmentUtilsMarker(String templateString, List parameters, UUID id) { + ReplaceEnvironmentUtilsMarker(String templateString, List parameters, UUID id) { this.templateString = templateString; this.parameters = parameters; this.id = id; diff --git a/src/main/java/org/openrewrite/java/spring/boot2/search/IntegrationSchedulerPoolRecipe.java b/src/main/java/org/openrewrite/java/spring/boot2/search/IntegrationSchedulerPoolRecipe.java index 6b3ea0519..945de9178 100644 --- a/src/main/java/org/openrewrite/java/spring/boot2/search/IntegrationSchedulerPoolRecipe.java +++ b/src/main/java/org/openrewrite/java/spring/boot2/search/IntegrationSchedulerPoolRecipe.java @@ -248,7 +248,7 @@ static class JavaProjects { @Value @With - private static class CommentAdded implements Marker { + static class CommentAdded implements Marker { UUID id; } } diff --git a/src/main/java/org/openrewrite/java/spring/security6/RequireExplicitSavingOfSecurityContextRepository.java b/src/main/java/org/openrewrite/java/spring/security6/RequireExplicitSavingOfSecurityContextRepository.java index db63e0bd4..aca4d63fa 100644 --- a/src/main/java/org/openrewrite/java/spring/security6/RequireExplicitSavingOfSecurityContextRepository.java +++ b/src/main/java/org/openrewrite/java/spring/security6/RequireExplicitSavingOfSecurityContextRepository.java @@ -115,7 +115,7 @@ public J.Block visitBlock(J.Block block, ExecutionContext ctx) { @Value @With - private static class ToBeRemoved implements Marker { + static class ToBeRemoved implements Marker { UUID id; static J2 withMarker(J2 j) {