Code & Deploy
Code
Models
Repos
Sign in
@matheusbsbs
/
matheus-bagliano
matheus-bagliano
/
t
/
t4018
/
java-method-return-generic-bounded
Code
Commits
Pulls
CI/CD
81,841
master
bisect
jch
maint
master
next
seen
test
todo
text
9 lines
249 Bytes
Copy permalink
Copy
Raw
1
class MyExample {
2
public <T extends Bar & Foo<T>, R> Map<T, R[]> foo(String[] RIGHT) {
3
someMethodCall();
4
someOtherMethod()
5
.doThat();
6
// Whatever...
7
return (List<T>) Arrays.asList("ChangeMe");
8
}
9
}