Merge pull request #6725 from emilejq/date-format

Java: Remove requirements for final and access mods from DateFormatThreadUnsafe
This commit is contained in:
Anders Schack-Mulligen
2021-09-23 15:02:17 +02:00
committed by GitHub
2 changed files with 1 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
class DateFormattingThread implements Runnable {
private static DateFormat dateF = new SimpleDateFormat("yyyyMMdd"); // Static field declared
public static DateFormat dateF = new SimpleDateFormat("yyyyMMdd"); // Static field declared
public void run() {
for(int i=0; i < 10; i++){

View File

@@ -16,7 +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