diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 62d138d..95404ed 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -29,7 +29,7 @@ jobs: run: | java -version javac -version - ./gradlew --no-daemon check -x spotBugsMain -x shadowJar + ./gradlew --no-daemon check -x shadowJar - name: Publish Build uses: actions/upload-artifact@v4 @@ -51,4 +51,4 @@ jobs: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} with: command: test - args: --severity-threshold=high --org=f310ee2f-5552-444d-84ee-ec8c44c33adb \ No newline at end of file + args: --severity-threshold=high --org=f310ee2f-5552-444d-84ee-ec8c44c33adb diff --git a/src/main/java/org/wiremock/spring/internal/WireMockServerCreator.java b/src/main/java/org/wiremock/spring/internal/WireMockServerCreator.java index fdc1b43..1bee791 100644 --- a/src/main/java/org/wiremock/spring/internal/WireMockServerCreator.java +++ b/src/main/java/org/wiremock/spring/internal/WireMockServerCreator.java @@ -3,9 +3,7 @@ import static com.github.tomakehurst.wiremock.core.WireMockConfiguration.options; import com.github.tomakehurst.wiremock.WireMockServer; -import com.github.tomakehurst.wiremock.common.Exceptions; import com.github.tomakehurst.wiremock.core.WireMockConfiguration; -import com.github.tomakehurst.wiremock.extension.ExtensionFactory; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import java.io.File; import java.nio.file.Path; @@ -283,10 +281,4 @@ private void applyCustomizers( } } } - - private static ExtensionFactory instantiateExtensionFactory( - Class factoryClass) { - return Exceptions.uncheck( - () -> factoryClass.getDeclaredConstructor().newInstance(), ExtensionFactory.class); - } }