File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
android/guava-tests/test/com/google/common/reflect
guava-tests/test/com/google/common/reflect Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,16 @@ private static class WithTypeVariable {
257257 @ SuppressWarnings ("unused" )
258258 <T > void withoutBound (List <T > list ) {}
259259
260- @ SuppressWarnings ("unused" )
260+ @ SuppressWarnings ({
261+ "unused" ,
262+ /*
263+ * Since reflection can't tell the difference between <T> and <T extends Object>, it doesn't
264+ * make a ton of sense to have a separate tests for each. But having tests for each doesn't
265+ * really hurt anything, and maybe it will serve a purpose in a future in which Java has a
266+ * built-in nullness feature?
267+ */
268+ "ExtendsObject" ,
269+ })
261270 <T extends Object > void withObjectBound (List <T > list ) {}
262271
263272 @ SuppressWarnings ("unused" )
Original file line number Diff line number Diff line change @@ -257,7 +257,16 @@ private static class WithTypeVariable {
257257 @ SuppressWarnings ("unused" )
258258 <T > void withoutBound (List <T > list ) {}
259259
260- @ SuppressWarnings ("unused" )
260+ @ SuppressWarnings ({
261+ "unused" ,
262+ /*
263+ * Since reflection can't tell the difference between <T> and <T extends Object>, it doesn't
264+ * make a ton of sense to have a separate tests for each. But having tests for each doesn't
265+ * really hurt anything, and maybe it will serve a purpose in a future in which Java has a
266+ * built-in nullness feature?
267+ */
268+ "ExtendsObject" ,
269+ })
261270 <T extends Object > void withObjectBound (List <T > list ) {}
262271
263272 @ SuppressWarnings ("unused" )
You can’t perform that action at this time.
0 commit comments