Skip to content

Commit

Permalink
chore: removing unused mehtod and avoiding exclude of Spotbugs in Act…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
tomasbjerre committed Dec 8, 2024
1 parent 9cacd13 commit dfa8a5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -51,4 +51,4 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: test
args: --severity-threshold=high --org=f310ee2f-5552-444d-84ee-ec8c44c33adb
args: --severity-threshold=high --org=f310ee2f-5552-444d-84ee-ec8c44c33adb
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -283,10 +281,4 @@ private void applyCustomizers(
}
}
}

private static ExtensionFactory instantiateExtensionFactory(
Class<? extends ExtensionFactory> factoryClass) {
return Exceptions.uncheck(
() -> factoryClass.getDeclaredConstructor().newInstance(), ExtensionFactory.class);
}
}

0 comments on commit dfa8a5e

Please sign in to comment.