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