/** * Maybe promote this method, which uses the shared type as argument, to the interface. * Alternatively, make all core-internal interfaces work with core types, not with shared * types. Example to be changed: SignatureFactory. */ public Construct getConstruct(com.sap.psr.vulas.shared.json.model.ConstructId _id) throws FileAnalysisException { for(ConstructId cid: this.constructs.keySet()) if(ConstructId.toSharedType(cid).equals(_id)) return this.constructs.get(cid); return null; }
/** * Maybe promote this method, which uses the shared type as argument, to the interface. * Alternatively, make all core-internal interfaces work with core types, not with shared * types. Example to be changed: SignatureFactory. */ public Construct getConstruct(com.sap.psr.vulas.shared.json.model.ConstructId _id) throws FileAnalysisException { for(ConstructId cid: this.constructs.keySet()) if(ConstructId.toSharedType(cid).equals(_id)) return this.constructs.get(cid); return null; }
if (other.constructId != null) return false; } else if (!constructId.equals(other.constructId)) return false; if (commit == null) {
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; PathNode other = (PathNode) obj; if (constructId == null) { if (other.constructId != null) return false; } else if (!constructId.equals(other.constructId)) return false; if (lib == null) { if (other.lib != null) return false; } else if (!lib.equals(other.lib)) return false; return true; } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; OrderedCCperConstructPath2 other = (OrderedCCperConstructPath2)obj; return other.getConstructId().equals(this.getConstructId()) && other.getRepoPath().equals(this.repoPath); }
/** * Returns true if the qualified name of the two constructs are equal, false otherwise. */ @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; NodeMetaInformation other = (NodeMetaInformation) obj; return this.getOriginalConstructId().equals(other.getOriginalConstructId()); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Trace other = (Trace) obj; if (app == null) { if (other.app != null) return false; } else if (!app.equals(other.app)) return false; if (constructId == null) { if (other.constructId != null) return false; } else if (!constructId.equals(other.constructId)) return false; if (lib == null) { if (other.lib != null) return false; } else if (!lib.equals(other.lib)) return false; return true; }
/** * Returns true if construct id and revision are equal. */ @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; final ConstructChange other = (ConstructChange)obj; final ConstructId tc = (this.def!=null ? com.sap.psr.vulas.ConstructId.toSharedType(this.def.getId()) : com.sap.psr.vulas.ConstructId.toSharedType(this.fix.getId())); final ConstructId oc = (other.def!=null ? com.sap.psr.vulas.ConstructId.toSharedType(other.def.getId()) : com.sap.psr.vulas.ConstructId.toSharedType(other.fix.getId())); return (tc.equals(oc) && this.commit.equals(other.commit)); }
if(PythonId.toSharedType(c).equals(pid)){ SignatureFactory sf = CoreConfiguration.getSignatureFactory(pid); sign = (PythonConstructDigest)sf.createSignature(fa.getConstructs().get(c));