diff --git a/pom.xml b/pom.xml
index f8fa7f6f..6d968c3e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -243,28 +243,20 @@
- com.theoryinpractise
- googleformatter-maven-plugin
- 1.7.3
+ com.spotify.fmt
+ fmt-maven-plugin
+ 2.23
- reformat-sources
- process-sources
format
-
- false
-
- true
- true
- false
- false
- false
- 100
-
+
+ true
+
+
org.apache.maven.plugins
diff --git a/src/main/java/gov/cms/madie/madiefhirservice/cql/LibraryCqlVisitor.java b/src/main/java/gov/cms/madie/madiefhirservice/cql/LibraryCqlVisitor.java
index e78d0b19..5b88c2ed 100644
--- a/src/main/java/gov/cms/madie/madiefhirservice/cql/LibraryCqlVisitor.java
+++ b/src/main/java/gov/cms/madie/madiefhirservice/cql/LibraryCqlVisitor.java
@@ -17,7 +17,6 @@
import org.hl7.fhir.r4.model.RelatedArtifact;
import java.util.ArrayList;
-import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
@@ -188,7 +187,9 @@ public String visitRetrieve(cqlParser.RetrieveContext ctx) {
return null;
}
- /** @return Has to be something so always null. */
+ /**
+ * @return Has to be something so always null.
+ */
@Override
protected String defaultResult() {
return null;
diff --git a/src/main/java/gov/cms/madie/madiefhirservice/services/MeasureTranslatorService.java b/src/main/java/gov/cms/madie/madiefhirservice/services/MeasureTranslatorService.java
index 768edc00..031b8a4a 100644
--- a/src/main/java/gov/cms/madie/madiefhirservice/services/MeasureTranslatorService.java
+++ b/src/main/java/gov/cms/madie/madiefhirservice/services/MeasureTranslatorService.java
@@ -14,7 +14,6 @@
import gov.cms.madie.models.measure.Population;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
-import org.hl7.fhir.Uri;
import org.hl7.fhir.r4.model.Identifier.IdentifierUse;
import org.hl7.fhir.instance.model.api.IBaseDatatype;
import org.hl7.fhir.r4.model.CanonicalType;
diff --git a/src/test/java/gov/cms/madie/madiefhirservice/resources/MeasureBundleControllerMvcTest.java b/src/test/java/gov/cms/madie/madiefhirservice/resources/MeasureBundleControllerMvcTest.java
index df030ee1..019d6f5a 100644
--- a/src/test/java/gov/cms/madie/madiefhirservice/resources/MeasureBundleControllerMvcTest.java
+++ b/src/test/java/gov/cms/madie/madiefhirservice/resources/MeasureBundleControllerMvcTest.java
@@ -27,7 +27,6 @@
import static org.hamcrest.MatcherAssert.assertThat;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyString;
-import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
diff --git a/src/test/java/gov/cms/madie/madiefhirservice/resources/TestCaseBundleControllerMvcTest.java b/src/test/java/gov/cms/madie/madiefhirservice/resources/TestCaseBundleControllerMvcTest.java
index 36257afa..a52e3c2f 100644
--- a/src/test/java/gov/cms/madie/madiefhirservice/resources/TestCaseBundleControllerMvcTest.java
+++ b/src/test/java/gov/cms/madie/madiefhirservice/resources/TestCaseBundleControllerMvcTest.java
@@ -8,7 +8,6 @@
import gov.cms.madie.models.common.BundleType;
import gov.cms.madie.models.dto.ExportDTO;
import gov.cms.madie.models.measure.Measure;
-import gov.cms.madie.models.measure.TestCase;
import org.hl7.fhir.r4.model.Bundle;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/gov/cms/madie/madiefhirservice/services/HumanReadableServiceTest.java b/src/test/java/gov/cms/madie/madiefhirservice/services/HumanReadableServiceTest.java
index b0f540c2..4f3d61b3 100644
--- a/src/test/java/gov/cms/madie/madiefhirservice/services/HumanReadableServiceTest.java
+++ b/src/test/java/gov/cms/madie/madiefhirservice/services/HumanReadableServiceTest.java
@@ -13,7 +13,6 @@
import gov.cms.madie.models.measure.MeasureScoring;
import gov.cms.madie.models.measure.Population;
import gov.cms.madie.models.measure.PopulationType;
-import org.hl7.fhir.MeasureGroup;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.Attachment;
import org.hl7.fhir.r4.model.Bundle;
@@ -87,10 +86,7 @@ void setUp() {
.measurementPeriodEnd(new Date())
.measureMetaData(
new MeasureMetaData()
- .toBuilder()
- .copyright("test_copyright")
- .disclaimer("test_disclaimer")
- .build())
+ .toBuilder().copyright("test_copyright").disclaimer("test_disclaimer").build())
.groups(List.of(measureGroup1))
.build();
diff --git a/src/test/java/gov/cms/madie/madiefhirservice/services/LibraryServiceTest.java b/src/test/java/gov/cms/madie/madiefhirservice/services/LibraryServiceTest.java
index ebe16075..35db4334 100644
--- a/src/test/java/gov/cms/madie/madiefhirservice/services/LibraryServiceTest.java
+++ b/src/test/java/gov/cms/madie/madiefhirservice/services/LibraryServiceTest.java
@@ -29,7 +29,6 @@
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.ArgumentMatchers.anyString;
-import static org.mockito.ArgumentMatchers.isNull;
import static org.mockito.Mockito.any;
import static org.mockito.Mockito.when;
diff --git a/src/test/java/gov/cms/madie/madiefhirservice/services/MeasureTranslatorServiceTest.java b/src/test/java/gov/cms/madie/madiefhirservice/services/MeasureTranslatorServiceTest.java
index 36ec4da5..4ec3a451 100644
--- a/src/test/java/gov/cms/madie/madiefhirservice/services/MeasureTranslatorServiceTest.java
+++ b/src/test/java/gov/cms/madie/madiefhirservice/services/MeasureTranslatorServiceTest.java
@@ -33,7 +33,6 @@
import gov.cms.madie.models.measure.PopulationType;
import gov.cms.madie.models.measure.Stratification;
import java.sql.Date;
-import java.time.Instant;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
diff --git a/src/test/java/gov/cms/madie/madiefhirservice/services/ResourceValidationServiceTest.java b/src/test/java/gov/cms/madie/madiefhirservice/services/ResourceValidationServiceTest.java
index fe934005..d43e9388 100644
--- a/src/test/java/gov/cms/madie/madiefhirservice/services/ResourceValidationServiceTest.java
+++ b/src/test/java/gov/cms/madie/madiefhirservice/services/ResourceValidationServiceTest.java
@@ -12,14 +12,12 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
-import org.mockito.Mock;
import org.mockito.MockedStatic;
import org.mockito.Mockito;
import org.mockito.Spy;
import org.mockito.junit.jupiter.MockitoExtension;
import java.util.List;
-import java.util.Map;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.notNullValue;
@@ -27,7 +25,6 @@
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.Mockito.when;
@ExtendWith(MockitoExtension.class)
class ResourceValidationServiceTest {