mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-21 05:53:27 +00:00
Remove comments
This commit is contained in:
parent
9433c97dc9
commit
a32d3a5f02
@ -204,21 +204,13 @@ public class SupplyChainValidationServiceImpl implements SupplyChainValidationSe
|
|||||||
if (pc.isDeltaChain()) {
|
if (pc.isDeltaChain()) {
|
||||||
// this check validates the delta changes and re-compares
|
// this check validates the delta changes and re-compares
|
||||||
// the modified list to the original.
|
// the modified list to the original.
|
||||||
try {
|
attributeScv = validateDeltaPlatformCredentialAttributes(
|
||||||
attributeScv = validateDeltaPlatformCredentialAttributes(
|
pc, device.getDeviceInfo(),
|
||||||
pc, device.getDeviceInfo(),
|
baseCredential, deltaMapping);
|
||||||
baseCredential, deltaMapping);
|
|
||||||
} catch (Exception ex) {
|
|
||||||
for (StackTraceElement element : ex.getStackTrace()) {
|
|
||||||
LOGGER.error(element.toString());
|
|
||||||
}
|
|
||||||
LOGGER.error(ex.getMessage());
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
attributeScv = validatePlatformCredentialAttributes(
|
attributeScv = validatePlatformCredentialAttributes(
|
||||||
pc, device.getDeviceInfo(), ec);
|
pc, device.getDeviceInfo(), ec);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (platformScv != null) {
|
if (platformScv != null) {
|
||||||
// have to make sure the attribute validation isn't ignored and
|
// have to make sure the attribute validation isn't ignored and
|
||||||
// doesn't override general validation status
|
// doesn't override general validation status
|
||||||
|
@ -810,17 +810,9 @@ public final class SupplyChainCredentialValidator implements CredentialValidator
|
|||||||
ciV2 = (ComponentIdentifierV2) cId;
|
ciV2 = (ComponentIdentifierV2) cId;
|
||||||
if (ciV2.getComponentClass().getClassValueString()
|
if (ciV2.getComponentClass().getClassValueString()
|
||||||
.contains(cInfo.getComponentClass())) {
|
.contains(cInfo.getComponentClass())) {
|
||||||
// TDM RIGHT HERE, you are getting a # from componentclass
|
|
||||||
/**
|
|
||||||
* YOU CAN DO IT. Don't fall asleep -_-
|
|
||||||
*/
|
|
||||||
if (isMatch(cId, cInfo)) {
|
if (isMatch(cId, cInfo)) {
|
||||||
LOGGER.error("TDM - Removed items");
|
|
||||||
subCompIdList.remove(cId);
|
subCompIdList.remove(cId);
|
||||||
subCompInfoList.remove(cInfo);
|
subCompInfoList.remove(cInfo);
|
||||||
} else {
|
|
||||||
// FUCK PMD
|
|
||||||
LOGGER.error("No match");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user