You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by db...@apache.org on 2011/09/25 23:09:31 UTC
svn commit: r1175578 -
/commons/proper/betwixt/trunk/src/java/org/apache/commons/betwixt/XMLIntrospector.java
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 );
}
}