Skip to content

Commit

Permalink
Fixed merge problems
Browse files Browse the repository at this point in the history
  • Loading branch information
fabapp2 committed Sep 20, 2023
1 parent 63a331e commit 306ec47
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ public boolean hasAnnotation(String annotationFqName) {
@Override
public void addAnnotation(String fqName) {
String snippet = "@" + fqName.substring(fqName.lastIndexOf('.') + 1);
AddAnnotationVisitor addAnnotationVisitor = new AddAnnotationVisitor(() -> javaParserBuilder, getVariableDeclarations(), snippet, fqName);
AddAnnotationVisitor addAnnotationVisitor = new AddAnnotationVisitor(() -> javaParserBuilder.getBuilder(), getVariableDeclarations(), snippet, fqName);
refactoring.refactor(rewriteSourceFileHolder, addAnnotationVisitor);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,6 @@ void parseResources() {
assertThat(parsingResult.sourceFiles()).hasSize(5);
}

@Test
@DisplayName("parse4Modules")
void parse4Modules() {
Path baseDir = getMavenProject("4-modules");
List<Resource> resources = projectScanner.scan(baseDir);

assertThat(resources).hasSize(4);

RewriteProjectParsingResult parsingResult = sut.parse(baseDir, resources, new InMemoryExecutionContext(t -> {throw new RuntimeException(t);}));
assertThat(parsingResult.sourceFiles()).hasSize(4);
}

private Path getMavenProject(String s) {
return Path.of("./testcode/maven-projects/").resolve(s).toAbsolutePath().normalize();
}
Expand Down

0 comments on commit 306ec47

Please sign in to comment.