/** * Clear the BCEL Repository in preparation for analysis. */ public void clearRepository() { // Set the backing store for the BCEL Repository to // be the AnalysisCache. Repository.setRepository(new AnalysisCacheToRepositoryAdapter()); }
@Override public void storeClass(JavaClass javaClass) { if (DEBUG) { System.out.println("Storing class " + javaClass.getClassName() + " in repository"); } JavaClass previous = nameToClassMap.put(javaClass.getClassName(), javaClass); if (DEBUG && previous != null) { System.out.println("\t==> A previous class was evicted!"); dumpStack(); } Repository tmp = org.apache.bcel.Repository.getRepository(); if (tmp != null && tmp != this) { throw new IllegalStateException("Wrong/multiple BCEL repository"); } if (tmp == null) { org.apache.bcel.Repository.setRepository(this); } }
/** * Clear the BCEL Repository in preparation for analysis. */ public void clearRepository() { // Set the backing store for the BCEL Repository to // be the AnalysisCache. Repository.setRepository(new AnalysisCacheToRepositoryAdapter()); }
@Override public void storeClass(JavaClass javaClass) { if (DEBUG) { System.out.println("Storing class " + javaClass.getClassName() + " in repository"); } JavaClass previous = nameToClassMap.put(javaClass.getClassName(), javaClass); if (DEBUG && previous != null) { System.out.println("\t==> A previous class was evicted!"); dumpStack(); } Repository tmp = org.apache.bcel.Repository.getRepository(); if (tmp != null && tmp != this) { throw new IllegalStateException("Wrong/multiple BCEL repository"); } if (tmp == null) { org.apache.bcel.Repository.setRepository(this); } }