Community
Participate
Working Groups
public abstract class SomeClass<T> { public final T element() { T result = (T) customElement(); // reports unnecessary cast return result; } protected abstract Object customElement(); } Preferences: I had all warnings on.
Cannot reproduce in latest. An unchecked cast is now reported. Added GenericTypeTest#test636