Skip to content

Commit d9ae460

Browse files
authored
Merge pull request #9948 from aschackmull/java/samenameassuper-perf
Java: Fix join-order in SameNameAsSuper.
2 parents 0be625f + 80bba60 commit d9ae460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/Violations of Best Practice/Naming Conventions/SameNameAsSuper.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ from RefType sub, RefType sup
1616
where
1717
sub.fromSource() and
1818
sup = sub.getASupertype() and
19-
sub.getName() = sup.getName()
19+
pragma[only_bind_out](sub.getName()) = pragma[only_bind_out](sup.getName())
2020
select sub, sub.getName() + " has the same name as its supertype $@.", sup, sup.getQualifiedName()

0 commit comments

Comments
 (0)