This is an automated email from the ASF dual-hosted git repository.

pottlinger pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tamaya.git


The following commit(s) were added to refs/heads/master by this push:
     new ac49208  LHF: Remove volatile as found by SonarCloud
ac49208 is described below

commit ac4920810fb0cfedf8a54af4a464148115f54af1
Author: Hugo Hirsch <[email protected]>
AuthorDate: Wed May 1 21:45:48 2019 +0200

    LHF: Remove volatile as found by SonarCloud
---
 .../java/org/apache/tamaya/core/propertysource/BasePropertySource.java  | 2 +-
 .../org/apache/tamaya/spisupport/propertysource/BasePropertySource.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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 @@ public abstract class BasePropertySource implements 
PropertySource{
     /** 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 @@ public abstract class BasePropertySource implements 
PropertySource{
     /** 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. */

Reply via email to