Skip to content

Commit bf029d6

Browse files
committed
Avoid checking of declaring types if a class is static.
1 parent 192dd73 commit bf029d6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

byte-buddy-dep/src/main/java/net/bytebuddy/description/type/TypeDescription.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8056,12 +8056,12 @@ public boolean isPackageType() {
80568056
public boolean isGenerified() {
80578057
if (!getTypeVariables().isEmpty()) {
80588058
return true;
8059-
} else if (isStatic()) {
8060-
return false;
80618059
}
8062-
TypeDescription declaringType = getDeclaringType();
8063-
if (declaringType != null && declaringType.isGenerified()) {
8064-
return true;
8060+
if (!isStatic()) {
8061+
TypeDescription declaringType = getDeclaringType();
8062+
if (declaringType != null && declaringType.isGenerified()) {
8063+
return true;
8064+
}
80658065
}
80668066
MethodDescription.InDefinedShape enclosingMethod = getEnclosingMethod();
80678067
return enclosingMethod != null && enclosingMethod.isGenerified();

0 commit comments

Comments
 (0)