Skip to content

Commit

Permalink
Merge pull request #42503 from ppalaga/i42501
Browse files Browse the repository at this point in the history
Elements missing in quarkus-config-javadoc.yaml for types nested more deeply than 1 level
  • Loading branch information
gsmet authored Aug 13, 2024
2 parents bf4dde4 + 5affc06 commit b4e761d
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 b4e761d

Please sign in to comment.