tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anat...@apache.org
Subject [2/2] incubator-tamaya git commit: TAMAYA-156: Bugfix: now honoring the enabled/disabled setting for usage reporting (added test as well).
Date Sat, 30 Apr 2016 19:57:34 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/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/e9a406b9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/e9a406b9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/e9a406b9

Branch: refs/heads/master
Commit: e9a406b949321cb233ceb1dba6489f79472a830d
Parents: 9f07d41
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/blob/e9a406b9/modules/model/src/main/java/org/apache/tamaya/model/internal/DefaultUsageTracker.java
----------------------------------------------------------------------
diff --git a/modules/model/src/main/java/org/apache/tamaya/model/internal/DefaultUsageTracker.java
b/modules/model/src/main/java/org/apache/tamaya/model/internal/DefaultUsageTracker.java
index 03b5bd5..9a502a4 100644
--- a/modules/model/src/main/java/org/apache/tamaya/model/internal/DefaultUsageTracker.java
+++ b/modules/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