Fixed up the PMD issue

This commit is contained in:
Cyrus 2021-04-14 14:52:45 -04:00
parent 61c4c81b77
commit 85d8f0342e

View File

@ -377,12 +377,11 @@ public class ReferenceManifestDetailsPageController
HashMap<String, TpmPcrEvent> digestMap = new HashMap<>(); HashMap<String, TpmPcrEvent> digestMap = new HashMap<>();
for (TpmPcrEvent tpe : logProcessor.getEventList()) { for (TpmPcrEvent tpe : logProcessor.getEventList()) {
digestMap.put(tpe.getEventDigestStr(), tpe); digestMap.put(tpe.getEventDigestStr(), tpe);
if (!support.isSwidSupplemental()) { if (!support.isSwidSupplemental()
if (!tpe.eventCompare( && !tpe.eventCompare(
measurementsProcess.getEventByNumber( measurementsProcess.getEventByNumber(
tpe.getEventNumber()))) { tpe.getEventNumber()))) {
tpe.setError(true); tpe.setError(true);
}
} }
tpmPcrEvents.add(tpe); tpmPcrEvents.add(tpe);
} }