Skip to content

Commit

Permalink
Trivial refactor: reuse hasAnnotation
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellansun committed Aug 24, 2024
1 parent 754d257 commit 1af63eb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public static boolean hasAnnotation(final AnnotatedNode node, final ClassNode an
}

public static boolean isGenerated(final AnnotatedNode node) {
List<?> annots = node.getAnnotations(GENERATED_TYPE);
return (annots != null && !annots.isEmpty());
return hasAnnotation(node, GENERATED_TYPE);
}
}

0 comments on commit 1af63eb

Please sign in to comment.