Skip to content

Commit

Permalink
Merge pull request #3533 from ingef/feature/sql-config-doc
Browse files Browse the repository at this point in the history
Feature/sql config doc
  • Loading branch information
thoniTUB authored Aug 22, 2024
2 parents 8f09ad1 + 8229aa3 commit 795c705
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import java.io.File;
import java.util.Arrays;

import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration;
import com.github.javaparser.ast.body.EnumDeclaration;
import com.github.javaparser.ast.body.FieldDeclaration;
import com.github.javaparser.ast.body.RecordDeclaration;
import com.github.javaparser.ast.body.TypeDeclaration;
import com.github.javaparser.ast.nodeTypes.NodeWithJavadoc;
import com.github.javaparser.ast.nodeTypes.NodeWithMembers;
import com.github.javaparser.ast.nodeTypes.NodeWithRange;
Expand Down Expand Up @@ -67,11 +67,11 @@ public Introspection findInnerType(String simpleName) {
else {
continue;
}
if (decl instanceof ClassOrInterfaceDeclaration cType) {
return new ClassIntrospection(file, cType);
if (decl instanceof EnumDeclaration enumDeclaration) {
return new EnumIntrospection(file, enumDeclaration);
}
if (decl instanceof RecordDeclaration recordDeclaration) {
return new RecordIntrospection(file, recordDeclaration);
if (decl instanceof TypeDeclaration<?> cType) {
return new AbstractNodeWithMemberIntrospection<>(file, cType);
}
}
throw new IllegalStateException(value.getNameAsString() + " has no inner type " + simpleName);
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ static Introspection from(File root, ClassInfo cl) {
return new EnumIntrospection(f, enumDeclaration);
}
return new AbstractNodeWithMemberIntrospection<>(f, typeDeclaration);
// return new ClassIntrospection(f, typeDeclaration);
} catch(Exception e) {
LoggerFactory.getLogger(Introspection.class).warn("Could not create compilation unit for {}", cl.getName(), e);
return new SimpleIntrospection(f);
Expand Down

This file was deleted.

0 comments on commit 795c705

Please sign in to comment.