• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package me.tomassetti.symbolsolver.javaparser;
2
3import java.util.Optional;
4import java.util.List;
5
6public final class Generics {
7
8    Optional<String> s;
9    Optional<Integer> i;
10    Optional<Generics> g;
11
12}
13
14public final class SomeCollection<A> {
15
16    public A a;
17    public List<A> as;
18
19    public void foo1(){
20        new SomeCollection<String>().a;
21    }
22
23    public void foo2(){
24        new SomeCollection<String>().as;
25    }
26
27}
28
29public final class GenericMethodCalls {
30
31    public class Base <T> {
32
33        public void callee(T data) {
34        }
35
36    }
37
38    public class Derived extends Base<String> {
39
40        public void caller() {
41            callee("test");
42        }
43
44    }
45
46}