mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Java: Add integration test for constant expr detection
This commit is contained in:
@@ -0,0 +1 @@
|
||||
| Test.java:3:8:3:15 | <TypeAccess of ErrorType> | Expression always evaluates to the same value. |
|
||||
@@ -0,0 +1 @@
|
||||
Likely Bugs/Arithmetic/ConstantExpAppearsNonConstant.ql
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
public static void updateFlashlights(Minecraft mc){
|
||||
if(mc.world != null){
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
def test(codeql, java):
|
||||
codeql.database.create(build_mode="none")
|
||||
Reference in New Issue
Block a user