commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject svn commit: r1175578 - /commons/proper/betwixt/trunk/src/java/org/apache/commons/betwixt/XMLIntrospector.java
Date Sun, 25 Sep 2011 21:09:31 GMT
Author: dbrosius
Date: Sun Sep 25 21:09:30 2011
New Revision: 1175578

URL: http://svn.apache.org/viewvc?rev=1175578&view=rev
Log:
apply patch: BETWIXT-71
[patch] remove minor code stutter

Modified:
    commons/proper/betwixt/trunk/src/java/org/apache/commons/betwixt/XMLIntrospector.java

Modified: commons/proper/betwixt/trunk/src/java/org/apache/commons/betwixt/XMLIntrospector.java
URL: http://svn.apache.org/viewvc/commons/proper/betwixt/trunk/src/java/org/apache/commons/betwixt/XMLIntrospector.java?rev=1175578&r1=1175577&r2=1175578&view=diff
==============================================================================
--- commons/proper/betwixt/trunk/src/java/org/apache/commons/betwixt/XMLIntrospector.java
(original)
+++ commons/proper/betwixt/trunk/src/java/org/apache/commons/betwixt/XMLIntrospector.java
Sun Sep 25 21:09:30 2011
@@ -755,11 +755,9 @@ public class XMLIntrospector {
             }
             size = contents.size();
             if ( size > 0 ) {
-                if ( size > 0 ) {
-                    Descriptor[] descriptors = new Descriptor[size];
-                    contents.toArray( descriptors );
-                    elementDescriptor.setContentDescriptors( descriptors );
-                }
+                Descriptor[] descriptors = new Descriptor[size];
+                contents.toArray( descriptors );
+                elementDescriptor.setContentDescriptors( descriptors );
             }
         }
         



Mime
View raw message