diff options
author | Olivier Lamy <olamy@apache.org> | 2012-08-08 22:10:11 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-08-08 22:10:11 +0000 |
commit | af692bcacd630bf9799bcea343f10214e9b6ecd7 (patch) | |
tree | ca77ad64990c14bdd9c90301d3b11674e3d57def /archiva-modules/archiva-base/archiva-common | |
parent | f65b6aee2a10d6b722ba6f574c2de5f814438561 (diff) | |
download | archiva-af692bcacd630bf9799bcea343f10214e9b6ecd7.tar.gz archiva-af692bcacd630bf9799bcea343f10214e9b6ecd7.zip |
use StringBuilder rather than StringBuffer
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1370992 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-common')
-rw-r--r-- | archiva-modules/archiva-base/archiva-common/src/main/java/org/apache/archiva/common/utils/DateUtil.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archiva-modules/archiva-base/archiva-common/src/main/java/org/apache/archiva/common/utils/DateUtil.java b/archiva-modules/archiva-base/archiva-common/src/main/java/org/apache/archiva/common/utils/DateUtil.java index 79d2bdc8e..01032d825 100644 --- a/archiva-modules/archiva-base/archiva-common/src/main/java/org/apache/archiva/common/utils/DateUtil.java +++ b/archiva-modules/archiva-base/archiva-common/src/main/java/org/apache/archiva/common/utils/DateUtil.java @@ -97,7 +97,7 @@ public class DateUtil --leftDays; } - StringBuffer interval = new StringBuffer(); + StringBuilder interval = new StringBuilder(); appendInterval( interval, leftDays, "Day" ); appendInterval( interval, leftHours, "Hour" ); @@ -108,7 +108,7 @@ public class DateUtil return interval.toString(); } - private static void appendInterval( StringBuffer interval, int count, String type ) + private static void appendInterval( StringBuilder interval, int count, String type ) { if ( count > 0 ) { |