Skip to content

Commit

Permalink
Merge pull request #879 from smallrye/fix/BlameAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
cescoffier authored Mar 18, 2022
2 parents 31657c0 + 1b94c83 commit 51b249b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .build/BlameAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ enum Target {
@Option(names = "--root", description = "The root of the git directory.", defaultValue = ".")
private File directory;

@Option(names = "--target", description = "The search target in [deprecation, experimental].", defaultValue = "deprecated")
@Option(names = "--target", description = "The search target in [deprecated, experimental].", defaultValue = "deprecated")
private Target target;

private Map<File, BlameResult> cache = new HashMap<>();
Expand Down Expand Up @@ -151,7 +151,7 @@ public Multimap<File, BlameTarget> getBlameTargets() throws IOException {

for(Path p : path) {
File file = p.toFile();
if (file.getName().endsWith(".java")) {
if (file.getName().endsWith(".java") && !file.getName().equals("BlameAPI.java")) {
List<String> result = Files.readLines(file, Charsets.UTF_8);
for (int i = 0; i < result.size(); i++) {
if (isDeprecated(result.get(i))) {
Expand Down

0 comments on commit 51b249b

Please sign in to comment.