TAMAYA-154: Fix javadoc

* Minor refactoring on StringBuilder.append() instead of concatenation.


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/b68a641f
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/tree/b68a641f
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/diff/b68a641f

Branch: refs/heads/master
Commit: b68a641f4ae9dd96ada5fff204f95c7f21e36e1b
Parents: adc1933
Author: Phil Ottlinger <pottlin...@apache.org>
Authored: Mon Aug 29 19:39:56 2016 +0200
Committer: Phil Ottlinger <pottlin...@apache.org>
Committed: Mon Aug 29 19:39:56 2016 +0200

----------------------------------------------------------------------
 .../apache/tamaya/model/internal/DefaultConfigUsageStats.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/b68a641f/model/src/main/java/org/apache/tamaya/model/internal/DefaultConfigUsageStats.java
----------------------------------------------------------------------
diff --git 
a/model/src/main/java/org/apache/tamaya/model/internal/DefaultConfigUsageStats.java
 
b/model/src/main/java/org/apache/tamaya/model/internal/DefaultConfigUsageStats.java
index 3ba1d4c..8910eaf 100644
--- 
a/model/src/main/java/org/apache/tamaya/model/internal/DefaultConfigUsageStats.java
+++ 
b/model/src/main/java/org/apache/tamaya/model/internal/DefaultConfigUsageStats.java
@@ -47,7 +47,7 @@ public class DefaultConfigUsageStats implements 
ConfigUsageStatsSpi {
     /**
      * Method that checks the 'tamaya.usage-report' system property for
      * enabling tamaya usage reporting initially.
-     * @return
+     * @return {@code true} iff property is set to {@code true}
      */
     private boolean initEnabled() {
         String val = System.getProperty("tamaya.usage-report");
@@ -137,7 +137,7 @@ public class DefaultConfigUsageStats implements 
ConfigUsageStatsSpi {
         StringBuilder b = new StringBuilder();
         b.append("Apache Tamaya Configuration Usage Metrics\n");
         b.append("=========================================\n");
-        b.append("DATE: " + new Date()).append("\n\n");
+        b.append("DATE: ").append(new Date()).append("\n\n");
         List<Usage> usages = new ArrayList<>(getUsages());
         Collections.sort(usages, new Comparator<Usage>() {
             @Override

Reply via email to