Skip to content

Commit

Permalink
Support Java 16+ records in querydsl-apt
Browse files Browse the repository at this point in the history
  • Loading branch information
cigaly authored and velo committed Apr 9, 2024
1 parent 3babe8b commit 19539a3
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@ public TypeElement visitArray(ArrayType t, Void p) {
public TypeElement visitDeclared(DeclaredType t, Void p) {
if (t.asElement() instanceof TypeElement) {
TypeElement typeElement = (TypeElement) t.asElement();
switch (typeElement.getKind()) {
case ENUM:
switch (typeElement.getKind().name()) {
case "ENUM":
return skipEnum ? null : typeElement;
case CLASS:
case "RECORD":
case "CLASS":
return typeElement;
case INTERFACE:
case "INTERFACE":
return visitInterface(t);
default:
throw new IllegalArgumentException("Illegal type: " + typeElement);
Expand Down

0 comments on commit 19539a3

Please sign in to comment.