commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject [lang] lvar should not hide ivar.
Date Wed, 16 Nov 2016 23:32:42 GMT
Repository: commons-lang
Updated Branches:
  refs/heads/master 792e95567 -> f3d2d55ab


lvar should not hide ivar.

Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/f3d2d55a
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/f3d2d55a
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/f3d2d55a

Branch: refs/heads/master
Commit: f3d2d55ab9b783af65f2050272cd0318a9ad23a2
Parents: 792e955
Author: Gary Gregory <ggregory@apache.org>
Authored: Wed Nov 16 15:32:40 2016 -0800
Committer: Gary Gregory <ggregory@apache.org>
Committed: Wed Nov 16 15:32:40 2016 -0800

----------------------------------------------------------------------
 .../java/org/apache/commons/lang3/time/FastDateParser.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/f3d2d55a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
index a9470d3..7430a91 100644
--- a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
+++ b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
@@ -419,9 +419,9 @@ public class FastDateParser implements DateParser, Serializable {
     public boolean parse(final String source, final ParsePosition pos, final Calendar calendar)
{
         final ListIterator<StrategyAndWidth> lt = patterns.listIterator();
         while (lt.hasNext()) {
-            final StrategyAndWidth pattern = lt.next();
-            final int maxWidth = pattern.getMaxWidth(lt);
-            if (!pattern.strategy.parse(this, calendar, source, pos, maxWidth)) {
+            final StrategyAndWidth strategyAndWidth = lt.next();
+            final int maxWidth = strategyAndWidth.getMaxWidth(lt);
+            if (!strategyAndWidth.strategy.parse(this, calendar, source, pos, maxWidth))
{
                 return false;
             }
         }


Mime
View raw message