Author: fanningpj
Date: Mon Jan 30 14:46:43 2023
New Revision: 1907114
URL: http://svn.apache.org/viewvc?rev=1907114&view=rev
Log:
mark some variables that are used in synchronized code as volatile
Modified:
poi/trunk/poi/src/main/java/org/apache/poi/hpsf/ClassIDPredefined.java
poi/trunk/poi/src/main/java/org/apache/poi/ss/format/CellDateFormatter.java
Modified: poi/trunk/poi/src/main/java/org/apache/poi/hpsf/ClassIDPredefined.java
URL:
http://svn.apache.org/viewvc/poi/trunk/poi/src/main/java/org/apache/poi/hpsf/ClassIDPredefined.java?rev=1907114&r1=1907113&r2=1907114&view=diff
==============================================================================
--- poi/trunk/poi/src/main/java/org/apache/poi/hpsf/ClassIDPredefined.java
(original)
+++ poi/trunk/poi/src/main/java/org/apache/poi/hpsf/ClassIDPredefined.java Mon
Jan 30 14:46:43 2023
@@ -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;
Modified:
poi/trunk/poi/src/main/java/org/apache/poi/ss/format/CellDateFormatter.java
URL:
http://svn.apache.org/viewvc/poi/trunk/poi/src/main/java/org/apache/poi/ss/format/CellDateFormatter.java?rev=1907114&r1=1907113&r2=1907114&view=diff
==============================================================================
--- poi/trunk/poi/src/main/java/org/apache/poi/ss/format/CellDateFormatter.java
(original)
+++ poi/trunk/poi/src/main/java/org/apache/poi/ss/format/CellDateFormatter.java
Mon Jan 30 14:46:43 2023
@@ -44,7 +44,7 @@ public class CellDateFormatter extends C
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;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]