mirror of
https://github.com/github/codeql.git
synced 2026-06-14 09:21:07 +02:00
First pass converting qlref tests to inline expectation with postprocess
This commit is contained in:
@@ -35,7 +35,7 @@ public class CollectionTest {
|
||||
}
|
||||
|
||||
// should be flagged
|
||||
private List<Integer> useless = new ArrayList<Integer>();
|
||||
private List<Integer> useless = new ArrayList<Integer>(); // $ Alert
|
||||
{
|
||||
useless.add(23);
|
||||
useless.remove(0);
|
||||
@@ -49,4 +49,4 @@ public class CollectionTest {
|
||||
@interface MyReflectionAnnotation {}
|
||||
@MyReflectionAnnotation
|
||||
private List<Integer> l8 = new ArrayList<Integer>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user