Skip to content

Commit

Permalink
fix: remove unused status values
Browse files Browse the repository at this point in the history
  • Loading branch information
burkedavison committed Nov 17, 2023
1 parent 88b4093 commit 0638a6b
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,17 +334,10 @@ public String extractStatus(T element) {
.map(mirror -> mirror.getAnnotationType().asElement().getSimpleName().toString())
.collect(Collectors.toList());

if (annotationNames.stream().anyMatch("InternalApi"::equals)
|| annotationNames.stream().anyMatch("InternalExtensionOnly"::equals)) {
return "internal";
}
if (annotationNames.stream().anyMatch("Deprecated"::equals)
|| hasDeprecatedJavadocTag(element)) {
return "deprecated";
}
if (annotationNames.stream().anyMatch("ObsoleteApi"::equals)) {
return "obsolete";
}
if (annotationNames.stream().anyMatch("BetaApi"::equals)) {
return "beta";
}
Expand Down

0 comments on commit 0638a6b

Please sign in to comment.