Skip to content

Commit

Permalink
Finished fixing all checkstyle errors. Now figuring out this dependen…
Browse files Browse the repository at this point in the history
…cy issue.
  • Loading branch information
ThatSilentCoder committed Oct 29, 2024
1 parent f9da128 commit 7a7385f
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public byte[] processCertificateRequest(final byte[] certificateRequest) {
attestationCertificate);
String pemEncodedAttestationCertificate = ProvisionUtils.getPemEncodedCertificate(
attestationCertificate);

// We validated the nonce and made use of the identity claim so state can be deleted
tpm2ProvisionerStateRepository.delete(tpm2ProvisionerState);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SuppressWarnings("checkstyle:hideutilityclassconstructor")
@SpringBootApplication
//@EnableAutoConfiguration
@Log4j2
Expand All @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ public KeyStore keyStore() {
}

/**
* @return
* Platform Transaction Manager bean.
*
* @return platform transaction manager bean
*/
@Bean
public PlatformTransactionManager transactionManager() {
Expand All @@ -234,7 +236,9 @@ public PlatformTransactionManager transactionManager() {
}

/**
* @return
* Persistence Exception Translation Post Processor bean.
*
* @return persistence exception translation post processor bean
*/
@Bean
public PersistenceExceptionTranslationPostProcessor exceptionTranslation() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
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;
Expand All @@ -23,10 +21,15 @@
*
* @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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
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;

Expand All @@ -36,8 +34,12 @@
* 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.
Expand Down
12 changes: 8 additions & 4 deletions config/checkstyle/suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 7a7385f

Please sign in to comment.