diff --git a/src/main/java/blue/lapis/nocturne/gui/scene/text/SelectableMember.java b/src/main/java/blue/lapis/nocturne/gui/scene/text/SelectableMember.java index 0ef0333..e97ec11 100644 --- a/src/main/java/blue/lapis/nocturne/gui/scene/text/SelectableMember.java +++ b/src/main/java/blue/lapis/nocturne/gui/scene/text/SelectableMember.java @@ -198,7 +198,6 @@ public SelectableMember(CodeTab codeTab, MemberType type, String name, String de qualName = getParentClass() + CLASS_PATH_SEPARATOR_CHAR + name; break; case METHOD: - default: IndexedClass ic = IndexedClass.INDEXED_CLASSES.get(getParentClass()); String parent = null; if (ic.getMethods().containsKey(sig)) { @@ -216,6 +215,8 @@ public SelectableMember(CodeTab codeTab, MemberType type, String name, String de } qualName = parent + CLASS_PATH_SEPARATOR_CHAR + name; break; + default: + throw new AssertionError(); } //TODO: we're ignoring field descriptors for now since SRG doesn't support them MemberKey key = new MemberKey(type, qualName, type == MemberType.METHOD ? descriptor : null);