From 93b1808e523c252098139c37ee5b23324e855b4a Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Fri, 27 Jun 2014 12:34:37 +0000 Subject: [PATCH] Statement unnecessarily nested within else clause. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606063 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/commons/lang3/text/StrSubstitutor.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java b/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java index 4c30e9777..aa1e3d2d3 100644 --- a/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java +++ b/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java @@ -865,10 +865,9 @@ private int substitute(final StrBuilder buf, final int offset, final int length, priorVariables .remove(priorVariables.size() - 1); break; - } else { - nestedVarCount--; - pos += endMatchLen; } + nestedVarCount--; + pos += endMatchLen; } } }