Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1671ea commit 93fc287Copy full SHA for 93fc287
1 file changed
java/ql/lib/semmle/code/java/ConflictingAccess.qll
@@ -1,6 +1,8 @@
1
/**
2
* Provides classes and predicates for detecting conflicting accesses in the sense of the Java Memory Model.
3
*/
4
+overlay[local?]
5
+module;
6
7
import java
8
import Concurrency
@@ -9,6 +11,7 @@ import Concurrency
9
11
* Holds if `t` is the type of a lock.
10
12
* Currently a crude test of the type name.
13
14
+overlay[caller?]
15
pragma[inline]
16
predicate isLockType(Type t) { t.getName().matches("%Lock%") }
17
@@ -208,6 +211,7 @@ class ExposedFieldAccess extends FieldAccess {
208
211
}
209
212
210
213
/** Holds if the location of `a` is strictly before the location of `b`. */
214
215
216
predicate orderedLocations(Location a, Location b) {
217
a.getStartLine() < b.getStartLine()
0 commit comments