Java: Change alert location for ConstantLoopCondition.

This commit is contained in:
Anders Schack-Mulligen
2018-12-10 12:37:11 +00:00
parent 6ef16bb728
commit bfc7fb7c8a
2 changed files with 5 additions and 5 deletions

View File

@@ -81,5 +81,5 @@ where
not exists(MethodAccess ma | ma.getParent*() = cond) and
not exists(FieldRead fa | fa.getParent*() = cond) and
not exists(ArrayAccess aa | aa.getParent*() = cond)
select loop, "Loop might not terminate, as this $@ is constant within the loop.", cond,
"loop condition"
select cond, "$@ might not terminate, as this loop condition is constant within the loop.", loop,
"Loop"