Skip to content

Commit

Permalink
HHH-16261 - Not ignoring JDK 14 records when processing
Browse files Browse the repository at this point in the history
  • Loading branch information
cigaly authored and beikov committed Apr 25, 2023
1 parent d8dfa70 commit 17fb2b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -223,7 +223,7 @@ private boolean isJPAEntity(Element element) {
private void handleRootElementAnnotationMirrors(final Element element) {
List<? extends AnnotationMirror> annotationMirrors = element.getAnnotationMirrors();
for ( AnnotationMirror mirror : annotationMirrors ) {
if ( !ElementKind.CLASS.equals( element.getKind() ) ) {
if ( !ElementKind.CLASS.equals( element.getKind() ) && !ElementKind.RECORD.equals( element.getKind() ) ) {
continue;
}

Expand Down
Expand Up @@ -316,7 +316,7 @@ public Boolean visitDeclared(DeclaredType declaredType, Element element) {
return Boolean.TRUE;
}

if ( ElementKind.CLASS.equals( element.getKind() ) || ElementKind.INTERFACE.equals( element.getKind() ) ) {
if ( ElementKind.CLASS.equals( element.getKind() ) || ElementKind.INTERFACE.equals( element.getKind() ) || ElementKind.RECORD.equals( element.getKind() ) ) {
TypeElement typeElement = ( (TypeElement) element );
String typeName = typeElement.getQualifiedName().toString();
if ( Constants.BASIC_TYPES.contains( typeName ) ) {
Expand Down

0 comments on commit 17fb2b9

Please sign in to comment.