Skip to content

Commit

Permalink
Merge pull request #17890 from famod/fix-jpa-index-warnings
Browse files Browse the repository at this point in the history
Fix 'Failed to index' warnings for arrays from entities
  • Loading branch information
famod authored Jun 14, 2021
2 parents efeaf52 + f7b15cc commit 36877ca
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@ private void addClassHierarchyToReflectiveList(Collector collector, DotName clas
// we need to check for enums
for (FieldInfo fieldInfo : classInfo.fields()) {
Type fieldType = fieldInfo.type();
if (Type.Kind.PRIMITIVE == fieldType.kind()) {
if (Type.Kind.CLASS != fieldType.kind()) {
// skip primitives and arrays
continue;
}
DotName fieldClassName = fieldInfo.type().name();
Expand Down

0 comments on commit 36877ca

Please sign in to comment.