T extends Object
is redundant; both <T>
and <T extends Object>
compile to
identical class files.— unless you are using the Checker Framework.
Suppress false positives by adding the suppression annotation @SuppressWarnings("ExtendsObject")
to the enclosing element.