Skip to content

Commit

Permalink
Throw a AssertionException if you have no clue what the fuck it is
Browse files Browse the repository at this point in the history
  • Loading branch information
jamierocks committed Feb 26, 2016
1 parent e84807f commit 6f455f4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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);
Expand Down

2 comments on commit 6f455f4

@caseif
Copy link
Member

@caseif caseif commented on 6f455f4 Feb 27, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*AssertionError, and watch your mouth mister. :P

@jamierocks
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh bollocks.

Please sign in to comment.