Skip to content

Commit

Permalink
Use getMethods
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <cwperx@amazon.com>
  • Loading branch information
cwperks committed Sep 28, 2023
1 parent a8d9b73 commit 5188697
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void handleRequest(RestRequest request, RestChannel channel, NodeClient c
RestHandler handlerSpy = spy(rh);
DelegatingRestHandler drh = new DelegatingRestHandler(handlerSpy);

List<Method> overridableMethods = Arrays.stream(RestHandler.class.getDeclaredMethods())
List<Method> overridableMethods = Arrays.stream(RestHandler.class.getMethods())
.filter(
m -> !(Modifier.isPrivate(m.getModifiers()) || Modifier.isStatic(m.getModifiers()) || Modifier.isFinal(m.getModifiers()))
)
Expand Down

0 comments on commit 5188697

Please sign in to comment.