Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ jobs:
- name: Check on failures
if: always() && steps.unit_tests.outcome != 'success'
run: |
cat /home/runner/java-sdk/core-api/build/reports/findbugs/main.html
cat /home/runner/java-sdk/core-api/build/reports/findbugs/test.html
cat /Users/runner/work/java-sdk/core-api/build/reports/spotbugs/main.html
cat /Users/runner/work/java-sdk/core-api/build/reports/spotbugs/test.html
- name: Check on success
if: always() && steps.unit_tests.outcome == 'success'
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ You can run all unit tests with:

### Checking for bugs

We utilize [FindBugs](http://findbugs.sourceforge.net/) to identify possible bugs in the SDK. To run the check:
We utilize [SpotBugs](https://spotbugs.github.io/) to identify possible bugs in the SDK. To run the check:

```

Expand Down
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id 'me.champeau.gradle.jmh' version '0.5.3'
id 'nebula.optional-base' version '3.2.0'
id 'com.github.hierynomus.license' version '0.16.1'
id 'com.github.spotbugs' version "4.5.0"
id 'com.github.spotbugs' version "6.0.14"
id 'maven-publish'
}

Expand Down Expand Up @@ -73,6 +73,7 @@ configure(publishedProjects) {

spotbugs {
spotbugsJmh.enabled = false
reportLevel = com.github.spotbugs.snom.Confidence.valueOf('HIGH')
}

test {
Expand Down
1 change: 1 addition & 0 deletions core-httpclient-impl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ dependencies {
implementation project(':core-api')
implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: httpClientVersion
implementation group: 'org.slf4j', name: 'slf4j-api', version: slf4jVersion
implementation group: 'com.google.code.findbugs', name: 'annotations', version: findbugsAnnotationVersion
implementation group: 'com.google.code.findbugs', name: 'jsr305', version: findbugsJsrVersion
testImplementation 'org.mock-server:mockserver-netty:5.1.1'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.locks.ReentrantLock;
import javax.annotation.Nullable;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import org.apache.http.*;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.methods.CloseableHttpResponse;
Expand Down Expand Up @@ -309,6 +310,7 @@ public Builder withPollingInterval(Long period, TimeUnit timeUnit) {
return this;
}

@SuppressFBWarnings("EI_EXPOSE_REP2")
public Builder withNotificationCenter(NotificationCenter notificationCenter) {
this.notificationCenter = notificationCenter;
return this;
Expand Down
Loading