Skip to content

Commit

Permalink
Elements missing in quarkus-config-javadoc.yaml for types nested more…
Browse files Browse the repository at this point in the history
… deeply than 1 level, fix quarkusio#42501
  • Loading branch information
ppalaga committed Aug 13, 2024
1 parent 7bbbfe2 commit 5affc06
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,12 @@ public boolean isAnnotationPresent(Element element, String... annotationNames) {
*/
public boolean isLocalClass(TypeElement clazz) {
try {
TypeElement topLevelClass = clazz;
if (clazz.getNestingKind().isNested()) {
topLevelClass = (TypeElement) clazz.getEnclosingElement();
while (clazz.getNestingKind().isNested()) {
clazz = (TypeElement) clazz.getEnclosingElement();
}

processingEnv.getFiler().getResource(StandardLocation.SOURCE_PATH, "",
topLevelClass.getQualifiedName().toString().replace('.', '/') + ".java");
clazz.getQualifiedName().toString().replace('.', '/') + ".java");
return true;
} catch (Exception e) {
return false;
Expand Down

0 comments on commit 5affc06

Please sign in to comment.