mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-19 04:58:00 +00:00
checking for class cast now. Highlighting appears.
This commit is contained in:
parent
6337367ba9
commit
9b790cb805
@ -566,11 +566,19 @@ public final class SupplyChainCredentialValidator implements CredentialValidator
|
||||
|
||||
// pass information of which ones failed in additionInfo
|
||||
for (ComponentIdentifier ci : validPcComponents) {
|
||||
ComponentIdentifierV2 pciCi = (ComponentIdentifierV2) ci;
|
||||
if (PciIds.DB.isReady()) {
|
||||
pciCi = PciIds.translate((ComponentIdentifierV2) ci);
|
||||
try {
|
||||
if (ci.isVersion2()) {
|
||||
ComponentIdentifierV2 pciCi = (ComponentIdentifierV2) ci;
|
||||
if (PciIds.DB.isReady()) {
|
||||
pciCi = PciIds.translate((ComponentIdentifierV2) ci);
|
||||
}
|
||||
additionalInfo.append(String.format("%d;", pciCi.hashCode()));
|
||||
} else {
|
||||
additionalInfo.append(String.format("%d;", ci.hashCode()));
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
LOGGER.error(ex.getMessage());
|
||||
}
|
||||
additionalInfo.append(String.format("%d;", pciCi.hashCode()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user