Skip to content

Commit 63e1fc5

Browse files
committed
Fix unchecked warnings
1 parent a76ce91 commit 63e1fc5

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Fixes:
1616
* `findEntries` and `findTrustRoots` methods in `FidoMetadataService` now
1717
attempt to read AAGUID from the attestation certificate if the `aaguid`
1818
argument is absent or zero.
19+
* Method `FidoMetadataService.Filters.allOf` now has `@SafeVarargs` annotation.
1920

2021

2122
== Version 2.3.0 ==

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ subprojects { project ->
144144
}
145145

146146
tasks.withType(JavaCompile) {
147+
options.compilerArgs += '-Xlint:unchecked'
147148
options.deprecation = true
148149
options.encoding = 'UTF-8'
149150
}

webauthn-server-attestation/src/main/java/com/yubico/fido/metadata/FidoMetadataService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ public static class Filters {
351351
* @return A filter which only accepts inputs that satisfy ALL of the given <code>
352352
* filters</code>.
353353
*/
354+
@SafeVarargs
354355
public static <T> Predicate<T> allOf(Predicate<T>... filters) {
355356
return (entry) -> Stream.of(filters).allMatch(filter -> filter.test(entry));
356357
}

0 commit comments

Comments
 (0)