mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Migrate Java code to separate QL repo.
This commit is contained in:
12
java/ql/src/DeadCode/DeadFieldWrittenTo.java
Normal file
12
java/ql/src/DeadCode/DeadFieldWrittenTo.java
Normal file
@@ -0,0 +1,12 @@
|
||||
public class FieldOnlyRead {
|
||||
private int writtenToField;
|
||||
|
||||
public void runThing() {
|
||||
writtenToField = 2;
|
||||
callOtherThing();
|
||||
}
|
||||
|
||||
public static main(String[] args) {
|
||||
runThing();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user