Skip to content

Commit

Permalink
jpmorganchase#109 Suppressing errors picked up in test classes since …
Browse files Browse the repository at this point in the history
…they are effectively test data
  • Loading branch information
jimbethancourt committed Jun 21, 2020
1 parent 9bcc7f5 commit b65150e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,14 @@ public void genericReference(List<Callee> list) {
//list.stream().filter(c -> "empty".equals(c.toString())).count();
}

@SuppressWarnings("ReturnValueIgnored")
public void referenceInLambdaSimple() {
Arrays.stream(new String[]{"empty"})
.filter(s -> s.equals(callee.toString()))
.count();
}

@SuppressWarnings("ReturnValueIgnored")
public void referenceInLambdaWithClass() {
Predicate<String> test = new Predicate<String>() {
@Override
Expand All @@ -85,6 +87,7 @@ public boolean test(String s) {
.count();
}

@SuppressWarnings("ReturnValueIgnored")
public void referenceInLambdaWithMethodHandle() {
Arrays.stream(new String[]{"empty"})
.filter(callee::filter)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ String post(String url) {
}
}

@SuppressWarnings("JUnit4TestNotRun")
@Path("/basic-quote-requests/annotation-only-method")
public void testJavaxOnlyMethodAnnotated(){
assertTrue(true);
Expand Down

0 comments on commit b65150e

Please sign in to comment.