DateFormatThreadUnsafe - Remove requirements for final and access modifiers

This commit is contained in:
Emile El-Qawas
2021-09-21 16:50:48 +01:00
parent 2c41de6648
commit dcae1c5c04

View File

@@ -16,8 +16,6 @@ import java
from Field f, Class dateFormat
where
f.isStatic() and
f.isFinal() and
(f.isPublic() or f.isProtected()) and
dateFormat.hasQualifiedName("java.text", "DateFormat") and
f.getType().(RefType).hasSupertype*(dateFormat) and
exists(MethodAccess m | m.getQualifier().(VarAccess).getVariable() = f)