We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
java/non-sync-override
1 parent ff5a98b commit 35552a8Copy full SHA for 35552a8
java/ql/src/Likely Bugs/Concurrency/NonSynchronizedOverride.ql
@@ -56,6 +56,7 @@ where
56
sup.isSynchronized() and
57
not sub.isSynchronized() and
58
not delegatingOverride(sub, sup) and
59
+ not exists(Method mid | sub.overrides(mid) and mid.overrides(sup)) and
60
supSrc = sup.getDeclaringType().getSourceDeclaration()
61
select sub,
62
"Method '" + sub.getName() + "' overrides a synchronized method in $@ but is not synchronized.",
0 commit comments