@Test public void should_return_null_if_object_is_null() throws Exception { assertThat(proxyFrameworks.getUnproxiedType((Object) null)).isNull(); }
public UnproxiedType getUnproxiedType(Class<?> type) { if (type == null){ return null; } if (isJavaProxy(type)){ return UNPROXIED_TYPE_FACTORY.createFromInterfaces(type.getInterfaces()); } if (isCglibProxyClass(type)) { return UNPROXIED_TYPE_FACTORY.createFromSuperclassAndInterfaces(type.getSuperclass(), type.getInterfaces()); } return UNPROXIED_TYPE_FACTORY.createFromType(type); }
ProxyFrameworks { public UnproxiedType getUnproxiedType(Class<?> type) { if (type == null){ return null; } if (isJavaProxy(type)){ return UNPROXIED_TYPE_FACTORY.createFromInterfaces(type.getInterfaces()); } if (isCglibProxyClass(type)) { return UNPROXIED_TYPE_FACTORY.createFromSuperclassAndInterfaces(type.getSuperclass(), type.getInterfaces()); } return UNPROXIED_TYPE_FACTORY.createFromType(type); } }
ProxyFrameworks { public UnproxiedType getUnproxiedType(Class<?> type) { if (type == null){ return null; } if (isJavaProxy(type)){ return UNPROXIED_TYPE_FACTORY.createFromInterfaces(type.getInterfaces()); } if (isCglibProxyClass(type)) { return UNPROXIED_TYPE_FACTORY.createFromSuperclassAndInterfaces(type.getSuperclass(), type.getInterfaces()); } return UNPROXIED_TYPE_FACTORY.createFromType(type); }  }
ProxyFrameworks { public UnproxiedType getUnproxiedType(Class<?> type) { if (type == null){ return null; } if (isJavaProxy(type)){ return UNPROXIED_TYPE_FACTORY.createFromInterfaces(type.getInterfaces()); } if (isCglibProxyClass(type)) { return UNPROXIED_TYPE_FACTORY.createFromSuperclassAndInterfaces(type.getSuperclass(), type.getInterfaces()); } return UNPROXIED_TYPE_FACTORY.createFromType(type); }  UnproxiedType getUnproxiedType(Class<?> type); UnproxiedType getUnproxiedType(Object o); }
ProxyFrameworks { public UnproxiedType getUnproxiedType(Class<?> type) { if (type == null){ return null; } if (isJavaProxy(type)){ return UNPROXIED_TYPE_FACTORY.createFromInterfaces(type.getInterfaces()); } if (isCglibProxyClass(type)) { return UNPROXIED_TYPE_FACTORY.createFromSuperclassAndInterfaces(type.getSuperclass(), type.getInterfaces()); } return UNPROXIED_TYPE_FACTORY.createFromType(type); }  UnproxiedType getUnproxiedType(Class<?> type); UnproxiedType getUnproxiedType(Object o);  }