@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SCMRevision that = (SCMRevision) o; if (modification != null ? !modification.equals(that.modification) : that.modification != null) { return false; } return true; }
public PartialConfigParseResult get(String fingerprint) { PartialConfigParseResult result = fingerprintOfPartialToParseResultMap.get(fingerprint); // config repository was never parsed, check if there are any material clone or update related errors if (result == null) { HealthStateScope healthStateScope = HealthStateScope.forMaterialConfig(configRepoService.findByFingerprint(fingerprint).getMaterialConfig()); List<ServerHealthState> serverHealthStates = serverHealthService.filterByScope(healthStateScope); if (!serverHealthStates.isEmpty()) { result = PartialConfigParseResult.parseFailed(null, represent(serverHealthStates.get(0))); } } //config repository was parsed, but does not have merge or clone related errors. if (result != null && result.getLastFailure() == null) { HealthStateScope healthStateScope = HealthStateScope.forPartialConfigRepo(fingerprint); List<ServerHealthState> serverHealthStates = serverHealthService.filterByScope(healthStateScope); if (!serverHealthStates.isEmpty()) { result.setException(represent(serverHealthStates.get(0))); //clear out the good modification, in case good modification is same as of latest parsed modification if (result.getLatestParsedModification().equals(result.getGoodModification())) { result.setGoodModification(null); result.setPartialConfig(null); } } } return result; }