Skip to content

Commit

Permalink
Avoid checking of declaring types if a class is static.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Jun 23, 2022
1 parent 192dd73 commit bf029d6
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8056,12 +8056,12 @@ public boolean isPackageType() {
public boolean isGenerified() {
if (!getTypeVariables().isEmpty()) {
return true;
} else if (isStatic()) {
return false;
}
TypeDescription declaringType = getDeclaringType();
if (declaringType != null && declaringType.isGenerified()) {
return true;
if (!isStatic()) {
TypeDescription declaringType = getDeclaringType();
if (declaringType != null && declaringType.isGenerified()) {
return true;
}
}
MethodDescription.InDefinedShape enclosingMethod = getEnclosingMethod();
return enclosingMethod != null && enclosingMethod.isGenerified();
Expand Down

0 comments on commit bf029d6

Please sign in to comment.