project: Mixins for HD
This commit is contained in:
@@ -77,7 +77,14 @@ public class DeobAnnotations
|
||||
@Nullable
|
||||
public static String getImplements(@NotNull ClassFile cf)
|
||||
{
|
||||
return getStringValue(cf, IMPLEMENTS);
|
||||
String stringValue = getStringValue(cf, IMPLEMENTS);
|
||||
|
||||
if (stringValue != null)
|
||||
{
|
||||
stringValue = flatten(stringValue);
|
||||
}
|
||||
|
||||
return stringValue;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@@ -114,4 +121,9 @@ public class DeobAnnotations
|
||||
final var a = an.findAnnotation(type);
|
||||
return a == null ? null : a.getValueString();
|
||||
}
|
||||
|
||||
public static String flatten(String className)
|
||||
{
|
||||
return className.substring(className.lastIndexOf('/') + 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user