Aufruf der Methode von static java.text.DateFormat nicht ratsam?
Ich erhalte eineFinden Sie Bugs Error -Aufruf der Methode von static java.text.DateFormat und ich kenne den Grund nicht, warum es nicht gut / ratsam ist, diese Dinge unten zu tun.
private static final Date TODAY = Calendar.getInstance().getTime();
private static final DateFormat yymmdd = new SimpleDateFormat("yyMMdd");
private String fileName = "file_" + yymmdd.format(TODAY);