Skip to content

Commit fd1a918

Browse files
committed
Revert simplification of Supplier conversion
1 parent 76076d0 commit fd1a918

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webauthn-server-core/src/main/scala/com/yubico/scala/util/JavaConverters.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ case class AsScalaOption[A](a: Optional[A]) {
1717
}
1818

1919
case class AsJavaSupplier[A](a: () => A) {
20-
def asJava[B >: A]: Supplier[B] = () => a()
20+
def asJava[B >: A]: Supplier[B] = new Supplier[B] {
21+
override def get(): B = a()
22+
}
2123
}
2224

2325
object JavaConverters {

0 commit comments

Comments
 (0)