do not store jvm class name in descriptor name
This commit is contained in:
@@ -41,7 +41,7 @@ public class Name implements Comparable<Name> {
|
||||
if (special) {
|
||||
throw new IllegalStateException("not identifier: " + this);
|
||||
}
|
||||
return name;
|
||||
return getName();
|
||||
}
|
||||
|
||||
public boolean isSpecial() {
|
||||
|
||||
@@ -24,7 +24,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
public class NameUtils {
|
||||
|
||||
public static boolean isValidIdentified(@NotNull String name) {
|
||||
return name.length() > 0 && !name.startsWith("<") && !name.contains(".");
|
||||
return name.length() > 0 && !name.startsWith("<") && !name.contains(".") && !name.contains("/");
|
||||
}
|
||||
|
||||
public static void requireIdentifier(@NotNull String name) {
|
||||
|
||||
Reference in New Issue
Block a user