commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1154725 - /commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/bm/Rule.java
Date Sun, 07 Aug 2011 16:54:54 GMT
Author: ggregory
Date: Sun Aug  7 16:54:54 2011
New Revision: 1154725

URL: http://svn.apache.org/viewvc?rev=1154725&view=rev
Log:
Consistent {} usage.

Modified:
    commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/bm/Rule.java

Modified: commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/bm/Rule.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/bm/Rule.java?rev=1154725&r1=1154724&r2=1154725&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/bm/Rule.java (original)
+++ commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/bm/Rule.java Sun
Aug  7 16:54:54 2011
@@ -692,9 +692,10 @@ public class Rule {
      * @return true if the pattern and left/right context match, false otherwise
      */
     public boolean patternAndContextMatches(CharSequence input, int i) {
-        if (i < 0)
+        if (i < 0) {
             throw new IndexOutOfBoundsException("Can not match pattern at negative indexes");
-
+        }
+        
         int patternLength = this.pattern.length();
         int ipl = i + patternLength;
 



Mime
View raw message