Fix redirectTypeGetName overflow (#818)
This commit is contained in:
parent
715c0c9f01
commit
cb5cec1a83
@ -173,9 +173,9 @@ public class ArclightReflectionHandler extends ClassLoader {
|
||||
|
||||
// srg -> bukkit
|
||||
public static String redirectTypeGetName(java.lang.reflect.Type type) {
|
||||
if (type instanceof Class cl) {
|
||||
if (type instanceof Class<?> cl) {
|
||||
if (cl.isArray()) {
|
||||
return redirectTypeGetName(cl) + "[]";
|
||||
return redirectTypeGetName(cl.getComponentType()) + "[]";
|
||||
}
|
||||
return redirectClassGetName(cl);
|
||||
} else if (type instanceof WildcardType wType) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user