コード例 #1
0
 private boolean isApplicableClass(ClassEditor ce, BloatLoaderContext loaderContext) {
   ClassEditor curEditor = ce;
   try {
     while (curEditor != null && !isApplicablePlatformClass(curEditor)) {
       if (BloatUtil.isPlatformClassName(BloatUtil.normalizeClassName(curEditor.type()))) {
         return false;
       }
       curEditor = loaderContext.classEditor(curEditor.superclass());
     }
   } catch (ClassNotFoundException exc) {
     return false;
   }
   return true;
 }
コード例 #2
0
 private boolean isApplicablePlatformClass(ClassEditor ce) {
   String className = BloatUtil.normalizeClassName(ce.name());
   return Enum.class.getName().equals(className)
       || isSupportedCollection(className)
       || Object.class.getName().equals(className);
 }