expose isThrowable() to public

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2311 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
sjfink 2008-01-08 14:17:47 +00:00
parent 19f17e3e28
commit f96a3c029b
1 changed files with 2 additions and 2 deletions

View File

@ -307,8 +307,8 @@ public class ZeroXInstanceKeys implements InstanceKeyFactory {
|| C.getReference().equals(JavaLangStringBuilder);
}
public boolean isThrowable(IClass C) {
return cha.isSubclassOf(C, cha.lookupClass(TypeReference.JavaLangThrowable));
public static boolean isThrowable(IClass C) {
return C.getClassHierarchy().isSubclassOf(C, C.getClassHierarchy().lookupClass(TypeReference.JavaLangThrowable));
}
public boolean isStackTraceElement(IClass C) {