private synchronized URL collectArchiveInformation(com.sap.psr.vulas.shared.json.model.ConstructId tgt_node) { URL url = null; final JavaId jid = ((JavaId)JavaId.toCoreType(tgt_node)).getCompilationUnit(); // We should always have a Java ID, since packages are not part of the callgraph if(jid!=null) { // Not in cache -> put in cache if(!this.cachedJarUrls.containsKey(jid)) { url = jid.getJarUrl(); this.cachedJarUrls.put(jid, url); // Warn if we do not find a URL if(url==null) constructsWithoutJarUrl.add(tgt_node); } // Read from cache url = this.cachedJarUrls.get(jid); } return url; }
final JavaId comp_unit = target_jid.getCompilationUnit(); final boolean is_nested_class = comp_unit instanceof JavaClassId && ((JavaClassId)comp_unit).isNestedClass();