mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
java: fix aliasing FP
reorganise code, adding `LockField`
This commit is contained in:
@@ -13,7 +13,7 @@ public class Alias {
|
||||
final ReentrantLock lock = this.lock;
|
||||
lock.lock();
|
||||
try {
|
||||
y = 42; // $ SPURIOUS: Alert
|
||||
y = 42;
|
||||
} finally {
|
||||
this.lock.unlock();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user