adding private constructors to appease checkstyles; fixed some mispellings

This commit is contained in:
iadgovuser58 2024-08-20 15:09:33 -04:00
parent 5b83cd2b3a
commit e24f07ab78
13 changed files with 49 additions and 20 deletions

View File

@ -1,16 +1,16 @@
package hirs.utils;
//import lombok.AccessLevel;
//import lombok.NoArgsConstructor;
import java.math.BigInteger;
/**
* Utilities for working with hex strings and byte arrays.
*/
//@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class HexUtils {
/**
* Default private constructor so checkstyles doesn't complain
*/
private HexUtils() { }
/**
* The mathematical base for the hexadecimal representation.
*/

View File

@ -2,8 +2,6 @@ package hirs.utils;
import com.eclipsesource.json.Json;
import com.eclipsesource.json.JsonObject;
//import lombok.AccessLevel;
//import lombok.NoArgsConstructor;
import lombok.extern.log4j.Log4j2;
import java.io.FileInputStream;
@ -20,9 +18,13 @@ import java.nio.file.Path;
* library.
*/
@Log4j2
//@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class JsonUtils {
/**
* Default private constructor so checkstyles doesn't complain
*/
private JsonUtils() { }
/**
* Getter for the JSON Object that is associated with the elementName value
* mapped in the associated JSON file.

View File

@ -25,6 +25,11 @@ import java.util.List;
@Log4j2
public final class PciIds {
/**
* Default private constructor so checkstyles doesn't complain
*/
private PciIds() { }
/**
* This pci ids file can be in different places on different distributions.
*/

View File

@ -1,6 +1,12 @@
package hirs.utils.enums;
public final class DeviceInfoEnums {
/**
* Default private constructor so checkstyles doesn't complain
*/
private DeviceInfoEnums() { }
/**
* A variable used to describe unavailable hardware, firmware, or OS info.
*/

View File

@ -3,7 +3,6 @@ package hirs.utils.swid;
import javax.xml.XMLConstants;
import javax.xml.namespace.QName;
/**
* This class contains the String constants that are referenced by the gateway
* class. It is expected that member properties of this class will expand as
@ -11,6 +10,11 @@ import javax.xml.namespace.QName;
*/
public class SwidTagConstants {
/**
* Default private constructor so checkstyles doesn't complain
*/
private SwidTagConstants() { }
public static final String DEFAULT_KEYSTORE_FILE = "keystore.jks";//"/opt/hirs/rimtool/keystore.jks";
public static final String DEFAULT_KEYSTORE_PASSWORD = "password";
public static final String DEFAULT_PRIVATE_KEY_ALIAS = "1";

View File

@ -1,15 +1,16 @@
package hirs.utils.tpm.eventlog.events;
//import lombok.AccessLevel;
//import lombok.NoArgsConstructor;
/**
* Class for defining constants referenced in the PC Client
* Platform Firmware Profile specification.
*/
//@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class EvConstants {
/**
* Default private constructor so checkstyles doesn't complain
*/
private EvConstants() { }
/**
* Type length = 4 bytes.
*/

View File

@ -1,5 +1,5 @@
/**
* Non-persistant classes related to TGC Event Logs.
* Non-persistent classes related to TGC Event Logs.
*/
package hirs.utils.tpm.eventlog.events;

View File

@ -1,5 +1,5 @@
/**
* Non-persistant classes related to TGC Event Logs.
* Non-persistent classes related to TGC Event Logs.
*/
package hirs.utils.tpm.eventlog;

View File

@ -6,6 +6,11 @@ package hirs.utils.tpm.eventlog.spdm;
*/
public class SpdmHa {
/**
* Default private constructor so checkstyles doesn't complain
*/
private SpdmHa() { }
/**
* Spdm Hash Alg = Raw bit stream.
*/

View File

@ -0,0 +1,5 @@
/**
* Non-persistent classes related to TGC Event Logs.
*/
package hirs.utils.tpm.eventlog.spdm;

View File

@ -1,16 +1,17 @@
package hirs.utils.tpm.eventlog.uefi;
//import lombok.AccessLevel;
//import lombok.NoArgsConstructor;
/**
* This class contains the String constants that are referenced by UEFI.
* It is expected that member properties of this class will expand as
* more functionality is added.
*/
//@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class UefiConstants {
/**
* Default private constructor so checkstyles doesn't complain
*/
private UefiConstants() { }
/**
* 2 byte size.
*/

View File

@ -1,5 +1,5 @@
/**
* Non-persistant classes related to TGC Event Logs.
* Non-persistent classes related to TGC Event Logs.
*/
package hirs.utils.tpm.eventlog.uefi;

View File

@ -1,5 +1,5 @@
/**
* Non-persistant classes related to TPM.
* Non-persistent classes related to TPM.
*/
package hirs.utils.tpm;