mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 16:37:45 +00:00
Made type params with no bounds aka just <T> fallback to java.lang.Object
This commit is contained in:
1 parent
2b5b4eb2d7
commit
486abca78b
1 file changed
+1
-3
+1
-3
@@ -85,9 +85,7 @@ public final class GenericContext {
|
||||
String name = declared.getName();
|
||||
if (name == null || name.isEmpty()) continue;
|
||||
TypeInfo bound = declared.getBoundTypeInfo();
|
||||
if (bound != null && bound.isResolved()) {
|
||||
bounds.put(name, bound);
|
||||
}
|
||||
bounds.put(name, (bound != null && bound.isResolved()) ? bound : TypeInfo.OBJECT);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user