mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Java: Fix bad magic in SynchSetUnsynchGet.
This commit is contained in:
@@ -35,6 +35,7 @@ predicate isSynchronizedByBlock(Method m) {
|
||||
* In this case, even if `set` is synchronized and `get` is not, `get` will never see stale
|
||||
* values for the field, so synchronization is optional.
|
||||
*/
|
||||
pragma[nomagic]
|
||||
predicate bothAccessVolatileField(Method set, Method get) {
|
||||
exists(Field f | f.isVolatile() |
|
||||
f = get.(GetterMethod).getField() and
|
||||
|
||||
Reference in New Issue
Block a user