We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff30c0d commit cc28a1bCopy full SHA for cc28a1b
1 file changed
src/main/java/org/javawebstack/httpserver/router/RouteBinder.java
@@ -187,7 +187,7 @@ private static List<Method> getMethodsRecursive(Class<?> type) {
187
List<Method> methods = new ArrayList<>(Arrays.asList(type.getDeclaredMethods()));
188
if (type.getSuperclass() != null && type.getSuperclass() != Object.class)
189
methods.addAll(getMethodsRecursive(type.getSuperclass()));
190
- return methods;
+ return methods.stream().filter(Objects::nonNull).collect(Collectors.toList());
191
}
192
193
private static class BindMapper {
0 commit comments