mirror of
https://github.com/github/codeql.git
synced 2026-06-13 17:01:10 +02:00
First pass converting qlref tests to inline expectation with postprocess
This commit is contained in:
@@ -35,7 +35,7 @@ public class MapTest {
|
||||
}
|
||||
|
||||
// should be flagged
|
||||
private Map<String, Integer> useless = new HashMap<String, Integer>();
|
||||
private Map<String, Integer> useless = new HashMap<String, Integer>(); // $ Alert
|
||||
{
|
||||
useless.put("hello", 23);
|
||||
useless.remove("hello");
|
||||
@@ -49,4 +49,4 @@ public class MapTest {
|
||||
@interface MyReflectionAnnotation {}
|
||||
@MyReflectionAnnotation
|
||||
private Map<String, Integer> l8 = new HashMap<String, Integer>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user