Lines Matching refs:class1
213 * @param class1
217 public static boolean isSamePackage(Class<?> class1, Class<?> class2) {
218 assert(!class1.isArray() && !class2.isArray());
219 if (class1 == class2)
221 if (class1.getClassLoader() != class2.getClassLoader())
223 String name1 = class1.getName(), name2 = class2.getName();
247 * @param class1
251 public static boolean isSamePackageMember(Class<?> class1, Class<?> class2) {
252 if (class1 == class2)
254 if (!isSamePackage(class1, class2))
256 if (getOutermostEnclosingClass(class1) != getOutermostEnclosingClass(class2))