Sign up to request clarification or add additional context in comments.
Comments
2
The proper method declaration would be:
public static <T extends MyObject> List<T> find() { ... }
When creating (static) generic methods, the generic parameter(s) has to be defined before the return-type, because they may be used in the return-type.
public static <T> List<T extends MyObject> T find()