Java: Add integration test for constant expr detection

This commit is contained in:
idrissrio
2025-09-29 13:25:30 +02:00
parent b52fff2f81
commit e0444c531b
4 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1 @@
| Test.java:3:8:3:15 | <TypeAccess of ErrorType> | Expression always evaluates to the same value. |

View File

@@ -0,0 +1 @@
Likely Bugs/Arithmetic/ConstantExpAppearsNonConstant.ql

View File

@@ -0,0 +1,7 @@
class Test {
public static void updateFlashlights(Minecraft mc){
if(mc.world != null){
}
}
}

View File

@@ -0,0 +1,2 @@
def test(codeql, java):
codeql.database.create(build_mode="none")