commit | ac4920810fb0cfedf8a54af4a464148115f54af1 | [log] [tgz] |
---|---|---|
author | Hugo Hirsch <github@hugo-hirsch.de> | Wed May 01 21:45:48 2019 +0200 |
committer | Hugo Hirsch <github@hugo-hirsch.de> | Wed May 01 21:45:48 2019 +0200 |
tree | b48855bf9caa8ee32fba53b6e8625482b65315ca | |
parent | 1d4c30d3d5ddf424a01055d4f4cd1723980c769c [diff] |
LHF: Remove volatile as found by SonarCloud
diff --git a/code/core/src/main/java/org/apache/tamaya/core/propertysource/BasePropertySource.java b/code/core/src/main/java/org/apache/tamaya/core/propertysource/BasePropertySource.java index 0a3bc1b..0f74b09 100644 --- a/code/core/src/main/java/org/apache/tamaya/core/propertysource/BasePropertySource.java +++ b/code/core/src/main/java/org/apache/tamaya/core/propertysource/BasePropertySource.java
@@ -36,7 +36,7 @@ /** default ordinal that will be used, if no ordinal is provided with the config. */ private int defaultOrdinal; /** Used if the ordinal has been setCurrent explicitly. */ - private volatile Integer ordinal; + private Integer ordinal; /** The name of the property source. */ private String name;
diff --git a/code/spi-support/src/main/java/org/apache/tamaya/spisupport/propertysource/BasePropertySource.java b/code/spi-support/src/main/java/org/apache/tamaya/spisupport/propertysource/BasePropertySource.java index 51a0a24..d0106aa 100644 --- a/code/spi-support/src/main/java/org/apache/tamaya/spisupport/propertysource/BasePropertySource.java +++ b/code/spi-support/src/main/java/org/apache/tamaya/spisupport/propertysource/BasePropertySource.java
@@ -36,7 +36,7 @@ /** default ordinal that will be used, if no ordinal is provided with the config. */ private int defaultOrdinal; /** Used if the ordinal has been setCurrent explicitly. */ - private volatile Integer ordinal; + private Integer ordinal; /** The name of the property source. */ private String name; /** The optional prefix. */