diff options
Diffstat (limited to 'javaparser-symbol-solver-testing/src/test/resources/ElementOfList.java.txt')
-rw-r--r-- | javaparser-symbol-solver-testing/src/test/resources/ElementOfList.java.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/javaparser-symbol-solver-testing/src/test/resources/ElementOfList.java.txt b/javaparser-symbol-solver-testing/src/test/resources/ElementOfList.java.txt new file mode 100644 index 000000000..c8b719cc6 --- /dev/null +++ b/javaparser-symbol-solver-testing/src/test/resources/ElementOfList.java.txt @@ -0,0 +1,23 @@ +import java.util.List; + +class Comment { + +} + +class AnnotationExpr { + +} + +class ElementOfList { + + void foo() { + List<Comment> comments = commentsCollection.getAll(); + Object a = comments.get(0); + } + + void annotations() { + List<AnnotationExpr> annotations = new LinkedList<AnnotationExpr>(); + Object a = annotations.get(annotations.size()-1); + } + +}
\ No newline at end of file |