Welcome to mirror list, hosted at ThFree Co, Russian Federation.

java-method-return-generic-bounded « t4018 « t - git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 66dd78c379a5f67f68bf3c4d165b63cfd04986f6 (plain)
1
2
3
4
5
6
7
8
9
class MyExample {
    public <T extends Bar & Foo<T>, R> Map<T, R[]> foo(String[] RIGHT) {
        someMethodCall();
        someOtherMethod()
            .doThat();
        // Whatever...
        return (List<T>) Arrays.asList("ChangeMe");
    }
}