Skip to content

Commit dcae1c5

Browse files
committed
DateFormatThreadUnsafe - Remove requirements for final and access modifiers
1 parent 2c41de6 commit dcae1c5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

java/ql/src/Likely Bugs/Concurrency/DateFormatThreadUnsafe.ql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ import java
1616
from Field f, Class dateFormat
1717
where
1818
f.isStatic() and
19-
f.isFinal() and
20-
(f.isPublic() or f.isProtected()) and
2119
dateFormat.hasQualifiedName("java.text", "DateFormat") and
2220
f.getType().(RefType).hasSupertype*(dateFormat) and
2321
exists(MethodAccess m | m.getQualifier().(VarAccess).getVariable() = f)

0 commit comments

Comments
 (0)