Finished fixing all checkstyle errors. Now figuring out this dependency issue.

This commit is contained in:
TheSilentCoder 2024-10-29 10:54:50 -04:00
parent f9da12865b
commit 7a7385f240
6 changed files with 30 additions and 14 deletions

View File

@ -4,6 +4,7 @@ import lombok.extern.log4j.Log4j2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SuppressWarnings("checkstyle:hideutilityclassconstructor")
@SpringBootApplication
//@EnableAutoConfiguration
@Log4j2
@ -24,7 +25,9 @@ public class HIRSApplication {
// }
/**
* @param args
* This is the starting point of the HIRS application.
*
* @param args main method arguments
*/
public static void main(final String[] args) {
// SpringApplication springApplication = new SpringApplication(HIRSApplication.class);

View File

@ -224,7 +224,9 @@ public class PersistenceJPAConfig implements WebMvcConfigurer {
}
/**
* @return
* Platform Transaction Manager bean.
*
* @return platform transaction manager bean
*/
@Bean
public PlatformTransactionManager transactionManager() {
@ -234,7 +236,9 @@ public class PersistenceJPAConfig implements WebMvcConfigurer {
}
/**
* @return
* Persistence Exception Translation Post Processor bean.
*
* @return persistence exception translation post processor bean
*/
@Bean
public PersistenceExceptionTranslationPostProcessor exceptionTranslation() {

View File

@ -5,8 +5,6 @@ import hirs.attestationca.persist.FilteredRecordsList;
import hirs.attestationca.persist.entity.userdefined.rim.ReferenceDigestValue;
import jakarta.persistence.EntityManager;
import jakarta.persistence.criteria.CriteriaQuery;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.util.CollectionUtils;
@ -23,10 +21,15 @@ import java.util.UUID;
*
* @param <T> The type of object to query
*/
@NoArgsConstructor(access = AccessLevel.PRIVATE)
@Log4j2
public final class OrderedListQueryDataTableAdapter<T> {
/**
* Private constructor was created to silence checkstyle error.
*/
private OrderedListQueryDataTableAdapter() {
}
/**
* Gets the ordered list of records using a default, no-op criteria modifier.
*

View File

@ -15,8 +15,6 @@ import hirs.attestationca.persist.entity.userdefined.certificate.attributes.Plat
import hirs.attestationca.persist.util.AcaPciIds;
import hirs.utils.BouncyCastleUtils;
import hirs.utils.PciIds;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.bouncycastle.util.encoders.Hex;
@ -36,8 +34,12 @@ import java.util.UUID;
* information on a web page, as X509 cert classes do not serialize to JSON
*/
@Log4j2
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class CertificateStringMapBuilder {
/**
* This private constructor was created to silence checkstyle error.
*/
private CertificateStringMapBuilder() {
}
/**
* Returns the general information.

View File

@ -6,11 +6,15 @@
<suppressions>
<!-- Ignore Auto generated files -->
<suppress files="[/\\]hirs[/\\]utils[/\\]xjc[/\\]" checks=".*" />
<suppress files="ProvisionerTpm2.java" checks=".*" />
<suppress files="[/\\]hirs[/\\]utils[/\\]xjc[/\\]" checks=".*"/>
<suppress files="ProvisionerTpm2.java" checks=".*"/>
<!-- HIRS_Utils -->
<!-- This ignores checking all public variable for a javadoc -->
<suppress files="SwidTagConstants.java" checks="LineLength" />
<suppress files="SwidTagConstants.java" checks="JavadocVariable" />
<suppress files="SwidTagConstants.java" checks="LineLength"/>
<suppress files="SwidTagConstants.java" checks="JavadocVariable"/>
<!-- This ignores checking for public constructors in utility classes in certain files -->
<suppress files="HIRSApplication.java" checks="HideUtilityClassConstructor"/>
<suppress files="PersistenceConfiguration.java" checks="HideUtilityClassConstructor"/>
</suppressions>