Skip to content

Commit 306ec47

Browse files
committed
Fixed merge problems
1 parent 63a331e commit 306ec47

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

components/sbm-core/src/main/java/org/springframework/sbm/java/impl/OpenRewriteMember.java

-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ public boolean hasAnnotation(String annotationFqName) {
110110
@Override
111111
public void addAnnotation(String fqName) {
112112
String snippet = "@" + fqName.substring(fqName.lastIndexOf('.') + 1);
113-
AddAnnotationVisitor addAnnotationVisitor = new AddAnnotationVisitor(() -> javaParserBuilder, getVariableDeclarations(), snippet, fqName);
114113
AddAnnotationVisitor addAnnotationVisitor = new AddAnnotationVisitor(() -> javaParserBuilder.getBuilder(), getVariableDeclarations(), snippet, fqName);
115114
refactoring.refactor(rewriteSourceFileHolder, addAnnotationVisitor);
116115
}

sbm-support-rewrite/src/test/java/org/springframework/sbm/parsers/RewriteProjectParserIntegrationTest.java

-12
Original file line numberDiff line numberDiff line change
@@ -97,18 +97,6 @@ void parseResources() {
9797
assertThat(parsingResult.sourceFiles()).hasSize(5);
9898
}
9999

100-
@Test
101-
@DisplayName("parse4Modules")
102-
void parse4Modules() {
103-
Path baseDir = getMavenProject("4-modules");
104-
List<Resource> resources = projectScanner.scan(baseDir);
105-
106-
assertThat(resources).hasSize(4);
107-
108-
RewriteProjectParsingResult parsingResult = sut.parse(baseDir, resources, new InMemoryExecutionContext(t -> {throw new RuntimeException(t);}));
109-
assertThat(parsingResult.sourceFiles()).hasSize(4);
110-
}
111-
112100
private Path getMavenProject(String s) {
113101
return Path.of("./testcode/maven-projects/").resolve(s).toAbsolutePath().normalize();
114102
}

0 commit comments

Comments
 (0)