jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r165165 - /incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/nodetype/PredefinedNodeTypeTest.java
Date Thu, 28 Apr 2005 16:53:24 GMT
Author: stefan
Date: Thu Apr 28 09:53:24 2005
New Revision: 165165

URL: http://svn.apache.org/viewcvs?rev=165165&view=rev
Log:
port to jcr api v0.16.4.1

Modified:
    incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/nodetype/PredefinedNodeTypeTest.java

Modified: incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/nodetype/PredefinedNodeTypeTest.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/nodetype/PredefinedNodeTypeTest.java?rev=165165&r1=165164&r2=165165&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/nodetype/PredefinedNodeTypeTest.java
(original)
+++ incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/nodetype/PredefinedNodeTypeTest.java
Thu Apr 28 09:53:24 2005
@@ -295,6 +295,9 @@
         NodeType[] types = node.getRequiredPrimaryTypes();
         Arrays.sort(types, NODE_TYPE_COMPARATOR);
         for (int j = 0; j < types.length; j++) {
+            if (j > 0) {
+                writer.print(',');
+            }
             writer.print(types[j].getName());
         }
         writer.println("]");
@@ -338,17 +341,20 @@
         writer.println("  RequiredType " + type.toUpperCase());
         writer.print("  ValueConstraints [");
         String[] constraints = property.getValueConstraints();
-        String delim = "";
         for (int i = 0; i < constraints.length; i++) {
-            writer.print(delim);
+            if (i > 0) {
+                writer.print(',');
+            }
             writer.print(constraints[i]);
-            delim=",";
         }
         writer.println("]");
         Value[] values = property.getDefaultValues();
         if (values != null && values.length > 0) {
             writer.print("  DefaultValues [");
             for (int j = 0; j < values.length; j++) {
+                if (j > 0) {
+                    writer.print(',');
+                }
                 writer.print(values[j].getString());
             }
             writer.println("]");



Mime
View raw message