mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed tests
null is not instance of any class
This commit is contained in:
@@ -193,7 +193,7 @@ public class PyUtil {
|
||||
// TODO: move to a saner place
|
||||
|
||||
public static boolean instanceOf(Object obj, Class... possibleClasses) {
|
||||
if (obj == null || possibleClasses == null) return true;
|
||||
if (obj == null || possibleClasses == null) return false;
|
||||
for (Class cls : possibleClasses) {
|
||||
if (cls.isInstance(obj)) return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user