Skip to content

Commit

Permalink
Apply suggestions from #2125
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 352653897
  • Loading branch information
cushon authored and Error Prone Team committed Jan 19, 2021
1 parent 20c5d14 commit d6f84aa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1373,9 +1373,9 @@ public static ImmutableSet<String> getGeneratedBy(Symbol symbol, VisitorState st
private static Stream<String> generatedValues(Attribute.Compound attribute) {
return attribute.getElementValues().entrySet().stream()
.filter(e -> e.getKey().getSimpleName().contentEquals("value"))
.findFirst()
.map(e -> MoreAnnotations.asStrings((AnnotationValue) e.getValue()))
.findAny()
.orElse(Stream.of(attribute.type.tsym.getQualifiedName().toString()));
.orElseGet(() -> Stream.of(attribute.type.tsym.getQualifiedName().toString()));
}

public static boolean isSuper(Tree tree) {
Expand Down

0 comments on commit d6f84aa

Please sign in to comment.