tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ple...@apache.org
Subject [13/50] [abbrv] incubator-tamaya-extensions git commit: TAMAYA-156: Bugfix: now honoring the enabled/disabled setting for usage reporting (added test as well).
Date Fri, 16 Sep 2016 22:03:23 GMT
TAMAYA-156: Bugfix: now honoring the enabled/disabled setting for usage reporting (added test
as well).


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/commit/e6ceeec1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/tree/e6ceeec1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/diff/e6ceeec1

Branch: refs/heads/master
Commit: e6ceeec1be66b095a8a809948adc2c35e61dd4b0
Parents: 8919610
Author: anatole <anatole@apache.org>
Authored: Sat Apr 30 21:51:48 2016 +0200
Committer: anatole <anatole@apache.org>
Committed: Sat Apr 30 21:51:48 2016 +0200

----------------------------------------------------------------------
 .../java/org/apache/tamaya/model/internal/DefaultUsageTracker.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/e6ceeec1/model/src/main/java/org/apache/tamaya/model/internal/DefaultUsageTracker.java
----------------------------------------------------------------------
diff --git a/model/src/main/java/org/apache/tamaya/model/internal/DefaultUsageTracker.java
b/model/src/main/java/org/apache/tamaya/model/internal/DefaultUsageTracker.java
index 03b5bd5..9a502a4 100644
--- a/model/src/main/java/org/apache/tamaya/model/internal/DefaultUsageTracker.java
+++ b/model/src/main/java/org/apache/tamaya/model/internal/DefaultUsageTracker.java
@@ -107,7 +107,7 @@ public class DefaultUsageTracker implements UsageTrackerSpi{
     @Override
     public void trackSingleKeyAccess(String key, String value){
         // Ignore meta-entries
-        if(key.startsWith("_")){
+        if(!isUsageTrackingEnabled() || key.startsWith("_")){
             return;
         }
         Usage usage = this.usages.get(key);


Mime
View raw message