mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
Merge pull request #10457 from github/smowton/fix/java-really-unique-fixedHasLocation
Java: really return a unique location for non-source entities
This commit is contained in:
@@ -216,7 +216,7 @@ private predicate fixedHasLocation(Top l, Location loc, File f) {
|
||||
min(Location candidateLoc |
|
||||
hasLocation(l, candidateLoc)
|
||||
|
|
||||
candidateLoc order by candidateLoc.getFile().toString()
|
||||
candidateLoc order by candidateLoc.getFile().getAbsolutePath()
|
||||
) and
|
||||
not hasSourceLocation(l, _, _) and
|
||||
locations_default(loc, f, _, _, _, _)
|
||||
|
||||
Reference in New Issue
Block a user