private static Class safeGetClass(Object obj) throws ObjectAnalyzerException { if(obj == null) throw new ObjectAnalyzerException(fatal + "null Object parameter");//NOI18N if(! (obj instanceof Object)) throw new ObjectAnalyzerException(fatal + "Object parameter is not really a java.lang.Object");//NOI18N Class cl = obj.getClass(); if(cl == null) throw new ObjectAnalyzerException(fatal + "getClass() on parameter Object returned null");//NOI18N return cl; }
private static Class safeGetClass(Object obj) throws ObjectAnalyzerException { if (obj == null) throw new ObjectAnalyzerException(fatal + "null Object parameter");//NOI18N Class cl = obj.getClass(); if (cl == null) throw new ObjectAnalyzerException(fatal + "getClass() on parameter Object returned null");//NOI18N return cl; }
private static Class safeGetClass(Object obj) throws ObjectAnalyzerException { if (obj == null) throw new ObjectAnalyzerException(fatal + "null Object parameter");//NOI18N Class cl = obj.getClass(); if (cl == null) throw new ObjectAnalyzerException(fatal + "getClass() on parameter Object returned null");//NOI18N return cl; }
private static Class safeGetSuperclass(Class cl) throws ObjectAnalyzerException { Class sc = cl.getSuperclass(); if (sc == null) throw new ObjectAnalyzerException("getSuperclass() on parameter Object returned null");//NOI18N return sc; }
private static Class safeGetSuperclass(Class cl) throws ObjectAnalyzerException { Class sc = cl.getSuperclass(); if (sc == null) throw new ObjectAnalyzerException("getSuperclass() on parameter Object returned null");//NOI18N return sc; }
private static Class safeGetSuperclass(Class cl) throws ObjectAnalyzerException { Class sc = cl.getSuperclass(); if(sc == null) throw new ObjectAnalyzerException("getSuperclass() on parameter Object returned null");//NOI18N return sc; }
throw new ObjectAnalyzerException("got a SecurityException when calling getDeclaredFields() on " + cl.getName());//NOI18N throw new ObjectAnalyzerException("calling getDeclaredFields() on " + cl.getName() + " returned null");//NOI18N
throw new ObjectAnalyzerException("got a SecurityException when calling getDeclaredFields() on " + cl.getName());//NOI18N
throw new ObjectAnalyzerException("got a SecurityException when calling getDeclaredFields() on " + cl.getName());//NOI18N