tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pottlin...@apache.org
Subject [incubator-tamaya-extensions] branch master updated: TAMAYA-277: Trigger rebuild and fix volatile warning
Date Sat, 11 May 2019 21:42:08 GMT
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-extensions.git


The following commit(s) were added to refs/heads/master by this push:
     new 95579ac  TAMAYA-277: Trigger rebuild and fix volatile warning
95579ac is described below

commit 95579ac14604790d21cd8d4a28d47ac90b6e3092
Author: Hugo Hirsch <github@hugo-hirsch.de>
AuthorDate: Sat May 11 23:42:00 2019 +0200

    TAMAYA-277: Trigger rebuild and fix volatile warning
---
 .../apache/tamaya/events/internal/DefaultConfigChangeObserver.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/events/src/main/java/org/apache/tamaya/events/internal/DefaultConfigChangeObserver.java
b/modules/events/src/main/java/org/apache/tamaya/events/internal/DefaultConfigChangeObserver.java
index 8852769..5c4de86 100644
--- a/modules/events/src/main/java/org/apache/tamaya/events/internal/DefaultConfigChangeObserver.java
+++ b/modules/events/src/main/java/org/apache/tamaya/events/internal/DefaultConfigChangeObserver.java
@@ -36,11 +36,11 @@ public class DefaultConfigChangeObserver {
 
     private static final Logger LOG = Logger.getLogger(DefaultConfigChangeObserver.class.getName());
 
-    private Timer timer = new Timer("DefaultConfigChangeObserver", true);
+    private Timer timer = new Timer(DefaultConfigChangeObserver.class.getSimpleName(), true);
 
     private long checkPeriod = 2000L;
 
-    private volatile ConfigurationSnapshot lastConfig;
+    private ConfigurationSnapshot lastConfig;
 
     private volatile boolean running;
 
@@ -108,7 +108,7 @@ public class DefaultConfigChangeObserver {
         LOG.finest("Resetting check period to " + checkPeriod + " ms, reregistering timer.");
         this.checkPeriod = checkPeriod;
         timer.cancel();
-        timer = new Timer("DefaultConfigChangeObserver", true);
+        timer = new Timer(DefaultConfigChangeObserver.class.getSimpleName(), true);
         timer.scheduleAtFixedRate(new TimerTask() {
             @Override
             public void run() {


Mime
View raw message