aboutsummaryrefslogtreecommitdiffstats
path: root/poi
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2023-02-11 11:26:03 +0000
committerPJ Fanning <fanningpj@apache.org>2023-02-11 11:26:03 +0000
commitdc91cdbaaa94862a2c7dc1af83017bb042744a72 (patch)
treebad24145e762ef733d5c609ed0889971a68757d5 /poi
parentbdd39251eff5d29996a5fa1818e0640f49c1f219 (diff)
downloadpoi-dc91cdbaaa94862a2c7dc1af83017bb042744a72.tar.gz
poi-dc91cdbaaa94862a2c7dc1af83017bb042744a72.zip
remove recently added volatile markers due to Sonarcloud warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907578 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi')
-rw-r--r--poi/src/main/java/org/apache/poi/hpsf/ClassIDPredefined.java2
-rw-r--r--poi/src/main/java/org/apache/poi/ss/format/CellDateFormatter.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/poi/src/main/java/org/apache/poi/hpsf/ClassIDPredefined.java b/poi/src/main/java/org/apache/poi/hpsf/ClassIDPredefined.java
index 963e447de4..61d6566c66 100644
--- a/poi/src/main/java/org/apache/poi/hpsf/ClassIDPredefined.java
+++ b/poi/src/main/java/org/apache/poi/hpsf/ClassIDPredefined.java
@@ -112,7 +112,7 @@ public enum ClassIDPredefined {
}
private final String externalForm;
- private volatile ClassID classId;
+ private ClassID classId;
private final String fileExtension;
private final String contentType;
diff --git a/poi/src/main/java/org/apache/poi/ss/format/CellDateFormatter.java b/poi/src/main/java/org/apache/poi/ss/format/CellDateFormatter.java
index 081863be78..24a95b023f 100644
--- a/poi/src/main/java/org/apache/poi/ss/format/CellDateFormatter.java
+++ b/poi/src/main/java/org/apache/poi/ss/format/CellDateFormatter.java
@@ -44,7 +44,7 @@ public class CellDateFormatter extends CellFormatter {
private static final int NUM_MILLISECONDS_IN_DAY = 1000 * 60 * 60 * 24;
- private static volatile CellDateFormatter SIMPLE_DATE_FORMATTER;
+ private static CellDateFormatter SIMPLE_DATE_FORMATTER;
class DatePartHandler implements CellFormatPart.PartHandler {
private int mStart = -1;