File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
webauthn-server-demo/src/main/scala/demo Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,9 @@ public Set<Class<?>> getClasses() {
19
19
20
20
@ Override
21
21
public Set <Object > getSingletons () {
22
- try {
23
- return new HashSet <>(Arrays .asList (
24
- new WebAuthnRestResource ()
25
- ));
26
- } catch (MalformedURLException e ) {
27
- throw new RuntimeException (e );
28
- }
22
+ return new HashSet <>(Arrays .asList (
23
+ new WebAuthnRestResource ()
24
+ ));
29
25
}
30
26
31
27
}
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public class WebAuthnRestResource {
43
43
private final ObjectMapper jsonMapper = new ScalaJackson ().get ();
44
44
private final JsonNodeFactory jsonFactory = JsonNodeFactory .instance ;
45
45
46
- public WebAuthnRestResource () throws MalformedURLException {
46
+ public WebAuthnRestResource () {
47
47
this (new WebAuthnServer ());
48
48
}
49
49
@@ -57,7 +57,7 @@ public WebAuthnRestResource(WebAuthnServer server) {
57
57
private final class IndexResponse {
58
58
public final Index actions = new Index ();
59
59
public final Info info = new Info ();
60
- private IndexResponse () throws NoSuchMethodException , MalformedURLException {
60
+ private IndexResponse () throws MalformedURLException {
61
61
}
62
62
}
63
63
private final class Index {
@@ -84,7 +84,7 @@ public Info() throws MalformedURLException {
84
84
}
85
85
86
86
@ GET
87
- public Response index () throws NoSuchMethodException , IOException {
87
+ public Response index () throws IOException {
88
88
return Response .ok (jsonMapper .writeValueAsString (new IndexResponse ())).build ();
89
89
}
90
90
You can’t perform that action at this time.
0 commit comments