directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r561330 - /directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/model/io/XMLSchemaFileExporter.java
Date Tue, 31 Jul 2007 13:49:01 GMT
Author: pamarcelot
Date: Tue Jul 31 06:49:00 2007
New Revision: 561330

URL: http://svn.apache.org/viewvc?view=rev&rev=561330
Log:
Modified a test. Syntax length was on the output even if it was equal to '0'.

Modified:
    directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/model/io/XMLSchemaFileExporter.java

Modified: directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/model/io/XMLSchemaFileExporter.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/model/io/XMLSchemaFileExporter.java?view=diff&rev=561330&r1=561329&r2=561330
==============================================================================
--- directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/model/io/XMLSchemaFileExporter.java
(original)
+++ directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/model/io/XMLSchemaFileExporter.java
Tue Jul 31 06:49:00 2007
@@ -280,7 +280,7 @@
 
         // Syntax Length
         int syntaxLength = at.getLength();
-        if ( syntaxLength != -1 )
+        if ( syntaxLength > 0 )
         {
             atNode.addElement( SYNTAX_LENGTH_TAG ).setText( "" + syntaxLength );
         }



Mime
View raw message