You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/12/21 17:21:52 UTC
[commons-lang] branch master updated: [LANG-1629] Delete white
space (#678)
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new 1f20030 [LANG-1629] Delete white space (#678)
1f20030 is described below
commit 1f2003041b37834ac9fbf78659c19372650ab355
Author: LeeJuHyun <50...@users.noreply.github.com>
AuthorDate: Tue Dec 22 02:21:40 2020 +0900
[LANG-1629] Delete white space (#678)
---
src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java b/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
index c2b55c2..8e36a85 100644
--- a/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
+++ b/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
@@ -343,7 +343,7 @@ public class DurationFormatUtils {
} else {
// there are no M's in the format string
- if ( !Token.containsTokenWithValue(tokens, y) ) {
+ if (!Token.containsTokenWithValue(tokens, y)) {
int target = end.get(Calendar.YEAR);
if (months < 0) {
// target is end-year -1
@@ -368,7 +368,7 @@ public class DurationFormatUtils {
years = 0;
}
- while ( start.get(Calendar.MONTH) != end.get(Calendar.MONTH) ) {
+ while (start.get(Calendar.MONTH) != end.get(Calendar.MONTH)) {
days += start.getActualMaximum(Calendar.DAY_OF_MONTH);
start.add(Calendar.MONTH, 1);
}