Skip to content

Commit

Permalink
Use instanceof as method reference
Browse files Browse the repository at this point in the history
  • Loading branch information
freya022 committed Oct 10, 2023
1 parent cdef686 commit 5f9847c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public static <E extends Enum<E>> Map<Class<GenericEvent>, EnumSet<E>> getEnumEn
private static List<String> getLinks(JavadocDescription description)
{
return description.getElements().stream()
.filter(e -> e instanceof JavadocInlineTag)
.filter(JavadocInlineTag.class::isInstance)
.map(JavadocInlineTag.class::cast)
.filter(tag -> tag.getType() == JavadocInlineTag.Type.LINK)
.map(JavadocInlineTag::getContent)
Expand Down

0 comments on commit 5f9847c

Please sign in to comment.