commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcucchi...@apache.org
Subject svn commit: r1188700 - /commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/NumberElementsAccessor.java
Date Tue, 25 Oct 2011 15:12:32 GMT
Author: mcucchiara
Date: Tue Oct 25 15:12:31 2011
New Revision: 1188700

URL: http://svn.apache.org/viewvc?rev=1188700&view=rev
Log:
Fixed checkstyle warning (added missing parenthesis)

Modified:
    commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/NumberElementsAccessor.java

Modified: commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/NumberElementsAccessor.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/NumberElementsAccessor.java?rev=1188700&r1=1188699&r2=1188700&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/NumberElementsAccessor.java
(original)
+++ commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/NumberElementsAccessor.java
Tue Oct 25 15:12:31 2011
@@ -24,7 +24,7 @@ import java.util.NoSuchElementException;
 
 /**
  * Implementation of ElementsAccessor that returns an iterator over integers from 0 up to
the given target.
- * 
+ *
  * @author Luke Blanshard (blanshlu@netscape.net)
  * @author Drew Davidson (drew@ognl.org)
  */
@@ -36,7 +36,7 @@ public class NumberElementsAccessor
      */
     public Enumeration<?> getElements( final Object target )
     {
-        return new Enumeration<Object>()
+        return new Enumeration<Object>( )
         {
             private int type = OgnlOps.getNumericType( target );
 
@@ -44,15 +44,17 @@ public class NumberElementsAccessor
 
             private long finish = OgnlOps.longValue( target );
 
-            public boolean hasMoreElements()
+            public boolean hasMoreElements( )
             {
                 return next < finish;
             }
 
-            public Object nextElement()
+            public Object nextElement( )
             {
                 if ( next >= finish )
-                    throw new NoSuchElementException();
+                {
+                    throw new NoSuchElementException( );
+                }
                 return OgnlOps.newInteger( type, next++ );
             }
         };



Mime
View raw message