diff --git a/.github/workflows/pitest-analyze-pr.yml b/.github/workflows/pitest-analyze-pr.yml index a3fb58015c3..7f40c2ffa87 100644 --- a/.github/workflows/pitest-analyze-pr.yml +++ b/.github/workflows/pitest-analyze-pr.yml @@ -30,28 +30,3 @@ jobs: with: name: pitest-reports path: ./target/pit-reports-ci - # XXX: Drop the job below. Here only for testing purposes. - update-pr: - permissions: - actions: read - checks: write - contents: read - pull-requests: write - needs: analyze-pr - runs-on: ubuntu-22.04 - steps: - - name: Check out code - uses: actions/checkout@v3.1.0 - - name: Set up JDK - uses: actions/setup-java@v3.6.0 - with: - java-version: 17 - distribution: temurin - cache: maven - - name: Download Pitest analysis artifact - uses: actions/download-artifact@v3.0.1 - with: - name: pitest-reports - path: ./target/pit-reports-ci - - name: Update PR - run: mvn -DrepoToken="${{ secrets.GITHUB_TOKEN }}" pitest-github:updatePR diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/PrimitiveComparison.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/PrimitiveComparison.java index 91067945f20..bd26e35d3f9 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/PrimitiveComparison.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/PrimitiveComparison.java @@ -80,14 +80,6 @@ public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState return Description.NO_MATCH; } - if (state.getSourceForNode(tree).equals("XXX")) { - return Description.NO_MATCH; - } - - if (state.getSourceForNode(tree).equals("YYY")) { - return Description.NO_MATCH; - } - return getPotentiallyBoxedReturnType(tree.getArguments().get(0)) .flatMap(cmpType -> attemptMethodInvocationReplacement(tree, cmpType, isStatic, state)) .map(fix -> describeMatch(tree, fix))