mirror of https://github.com/apache/poi.git
mark some variables that are used in synchronized code as volatile
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907114 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6f606cabda
commit
34f6955a28
|
@ -112,7 +112,7 @@ public enum ClassIDPredefined {
|
|||
}
|
||||
|
||||
private final String externalForm;
|
||||
private ClassID classId;
|
||||
private volatile ClassID classId;
|
||||
private final String fileExtension;
|
||||
private final String contentType;
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ public class CellDateFormatter extends CellFormatter {
|
|||
|
||||
private static final int NUM_MILLISECONDS_IN_DAY = 1000 * 60 * 60 * 24;
|
||||
|
||||
private static CellDateFormatter SIMPLE_DATE_FORMATTER;
|
||||
private static volatile CellDateFormatter SIMPLE_DATE_FORMATTER;
|
||||
|
||||
class DatePartHandler implements CellFormatPart.PartHandler {
|
||||
private int mStart = -1;
|
||||
|
|
Loading…
Reference in New Issue