fix SLF4J warnings

This commit is contained in:
iadgovuser58 2024-08-14 18:51:39 -04:00
parent 6f0553fe3f
commit 30a049a613
2 changed files with 16 additions and 17 deletions

View File

@ -43,17 +43,16 @@ dependencies {
implementation 'org.apache.logging.log4j:log4j-core:2.19.0'
implementation 'org.apache.logging.log4j:log4j-api:2.19.0'
implementation 'org.glassfish.jaxb:jaxb-runtime:4.0.1'
implementation 'org.slf4j:slf4j-simple:1.7.30'
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.3'
testImplementation 'org.junit.platform:junit-platform-launcher:1.9.3'
testImplementation 'org.hamcrest:hamcrest:2.2'
testImplementation project(path: ':HIRS_AttestationCA')
testImplementation 'org.mockito:mockito-core:4.2.0'
testImplementation project(path: ':HIRS_AttestationCA')
compileOnly libs.lombok
annotationProcessor libs.lombok
}
checkstyle {

View File

@ -113,21 +113,21 @@ public class DeviceSecurityEventDataPciContext extends DeviceSecurityEventDataDe
dSEDpciContextInfo += super.toString();
dSEDpciContextInfo += " Device Type = PCI\n";
// dSEDpciContextInfo += " Vendor = " + translateVendor(vendorId) + "\n";
// dSEDpciContextInfo += " Device = " + translateDevice(vendorId, deviceId) + "\n";
// dSEDpciContextInfo += " RevisionID = " + revisionId + "\n";
dSEDpciContextInfo += " Vendor = " + translateVendor(vendorId) + "\n";
dSEDpciContextInfo += " Device = " + translateDevice(vendorId, deviceId) + "\n";
dSEDpciContextInfo += " RevisionID = " + revisionId + "\n";
// List<String> classCodeList = translateDeviceClass(classCode);
// dSEDpciContextInfo += " Device Class: \n";
// if(classCodeList.size() == 3) {
// dSEDpciContextInfo += " Class = " + classCodeList.get(0) + "\n";
// dSEDpciContextInfo += " Subclass = " + classCodeList.get(1) + "\n";
// dSEDpciContextInfo += " Programming Interface = " + classCodeList.get(2) + "\n";
// } else {
// dSEDpciContextInfo += " ** Class code could not be determined **";
// }
// dSEDpciContextInfo += " SubsystemVendor = " + translateVendor(subsystemVendorId) + "\n";
// dSEDpciContextInfo += " Subsystem = " + translateDevice(subsystemVendorId, subsystemId) + "\n";
List<String> classCodeList = translateDeviceClass(classCode);
dSEDpciContextInfo += " Device Class: \n";
if(classCodeList.size() == 3) {
dSEDpciContextInfo += " Class = " + classCodeList.get(0) + "\n";
dSEDpciContextInfo += " Subclass = " + classCodeList.get(1) + "\n";
dSEDpciContextInfo += " Programming Interface = " + classCodeList.get(2) + "\n";
} else {
dSEDpciContextInfo += " ** Class code could not be determined **";
}
dSEDpciContextInfo += " SubsystemVendor = " + translateVendor(subsystemVendorId) + "\n";
dSEDpciContextInfo += " Subsystem = " + translateDevice(subsystemVendorId, subsystemId) + "\n";
return dSEDpciContextInfo;
}