Skip to content

Commit

Permalink
Merge pull request #18675 from mkouba/bean-archive-index-ignore-arrays
Browse files Browse the repository at this point in the history
Bean archive index - avoid warning about indexing arrays
  • Loading branch information
mkouba authored Jul 14, 2021
2 parents e96bab6 + 638723f commit edc5c9a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ static boolean index(Indexer indexer, String className) {

static boolean index(Indexer indexer, String className, ClassLoader classLoader) {
boolean result = false;
if (Types.isPrimitiveClassName(className)) {
if (Types.isPrimitiveClassName(className) || className.startsWith("[")) {
// Ignore primitives and arrays
return false;
}
try (InputStream stream = classLoader
Expand Down

0 comments on commit edc5c9a

Please sign in to comment.