Fix compile errors

This commit is contained in:
Andreas Dangel
2020-04-04 18:43:25 +02:00
parent c8ffb63e40
commit 78974f450d

View File

@ -329,7 +329,7 @@ public interface Node {
* @param targetType class which you want to find. * @param targetType class which you want to find.
* @return List of all children of type targetType. Returns an empty list if none found. * @return List of all children of type targetType. Returns an empty list if none found.
*/ */
default <T extends Node> List<T> findDescendantsOfType(Class<? extends T> targetType) { default <T extends Node> List<T> findDescendantsOfType(Class<T> targetType) {
return descendants(targetType).toList(); return descendants(targetType).toList();
} }