Made type params with no bounds aka just <T> fallback to java.lang.Object

This commit is contained in:
bigguy345 committed 2026-03-11 00:53:39 +02:00
1 parent 2b5b4eb2d7
commit 486abca78b
1 file changed
+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);
}
}