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 9a62147 commit 5930728Copy full SHA for 5930728
1 file changed
java/ql/consistency-queries/toString.ql
@@ -20,7 +20,7 @@ string topToString(Top t) {
20
}
21
22
string not1ToString() {
23
- exists(Top t | count(topToString(t)) != 1 and result = "Top which doesn't have exactly 1 toString: " + concat(t.getAQlClass(), ", "))
+ exists(Top t | count(topToString(t)) != 1 and result = "Top which doesn't have exactly 1 toString: " + t.getPrimaryQlClasses())
24
or
25
exists(Location l | count(l.toString()) != 1 and result = "Location which doesn't have exactly 1 toString: " + concat(l.getAQlClass(), ", "))
26
0 commit comments