You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by ju...@apache.org on 2005/04/21 08:04:23 UTC

svn commit: r164007 [2/2] - in /incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core: ./ config/ fs/local/ lock/ nodetype/ observation/ query/ query/lucene/ security/ state/ state/mem/ state/xml/ util/ version/ version/persistence/ virtual/ xml/

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/xml/AbstractSAXEventGenerator.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/xml/AbstractSAXEventGenerator.java?rev=164007&r1=164006&r2=164007&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/xml/AbstractSAXEventGenerator.java (original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/xml/AbstractSAXEventGenerator.java Wed Apr 20 23:04:21 2005
@@ -92,7 +92,7 @@
         // serialize node and subtree
         process(startNode, 0);
 
-        // clear namespace declarations and end document 
+        // clear namespace declarations and end document
         endNamespaceDeclarations();
         contentHandler.endDocument();
     }

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/xml/DocViewImportHandler.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/xml/DocViewImportHandler.java?rev=164007&r1=164006&r2=164007&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/xml/DocViewImportHandler.java (original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/xml/DocViewImportHandler.java Wed Apr 20 23:04:21 2005
@@ -68,7 +68,7 @@
      * @see #ignorableWhitespace(char[], int, int)
      * @see #processCharacters()
      */
-    private void appendCharacters(char ch[], int start, int length)
+    private void appendCharacters(char[] ch, int start, int length)
             throws SAXException {
         if (textHandler == null) {
             textHandler = new BufferedStringValue();
@@ -242,7 +242,7 @@
     /**
      * {@inheritDoc}
      */
-    public void ignorableWhitespace(char ch[], int start, int length)
+    public void ignorableWhitespace(char[] ch, int start, int length)
             throws SAXException {
         /**
          * buffer data reported by the ignorableWhitespace event;

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/xml/SessionImporter.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/xml/SessionImporter.java?rev=164007&r1=164006&r2=164007&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/xml/SessionImporter.java (original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/xml/SessionImporter.java Wed Apr 20 23:04:21 2005
@@ -1,7 +1,7 @@
 /*
  * Copyright 2004-2005 The Apache Software Foundation or its licensors,
  *                     as applicable.
-  *
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -276,8 +276,8 @@
             for (int i = 0; i < tva.length; i++) {
                 TextValue tv = tva[i];
 
-                if (targetType == PropertyType.NAME ||
-                        targetType == PropertyType.PATH) {
+                if (targetType == PropertyType.NAME
+                        || targetType == PropertyType.PATH) {
                     // NAME and PATH require special treatment because
                     // they depend on the current namespace context
                     // of the xml document

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/xml/SysViewImportHandler.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/xml/SysViewImportHandler.java?rev=164007&r1=164006&r2=164007&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/xml/SysViewImportHandler.java (original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/xml/SysViewImportHandler.java Wed Apr 20 23:04:21 2005
@@ -125,7 +125,8 @@
             // node name (value of sv:name attribute)
             String name = atts.getValue(SysViewSAXEventGenerator.PREFIXED_NAME_ATTRIBUTE);
             if (name == null) {
-                throw new SAXException(new InvalidSerializedDataException("missing mandatory sv:name attribute of element sv:node"));
+                throw new SAXException(new InvalidSerializedDataException(
+                        "missing mandatory sv:name attribute of element sv:node"));
             }
 
             if (!stack.isEmpty()) {
@@ -157,7 +158,8 @@
             // property name (value of sv:name attribute)
             String name = atts.getValue(SysViewSAXEventGenerator.PREFIXED_NAME_ATTRIBUTE);
             if (name == null) {
-                throw new SAXException(new InvalidSerializedDataException("missing mandatory sv:name attribute of element sv:property"));
+                throw new SAXException(new InvalidSerializedDataException(
+                        "missing mandatory sv:name attribute of element sv:property"));
             }
             try {
                 currentPropName = QName.fromJCRName(name, nsContext);
@@ -169,7 +171,8 @@
             // property type (sv:type attribute)
             String type = atts.getValue(SysViewSAXEventGenerator.PREFIXED_TYPE_ATTRIBUTE);
             if (type == null) {
-                throw new SAXException(new InvalidSerializedDataException("missing mandatory sv:type attribute of element sv:property"));
+                throw new SAXException(new InvalidSerializedDataException(
+                        "missing mandatory sv:type attribute of element sv:property"));
             }
             currentPropType = PropertyType.valueFromName(type);
         } else if (SysViewSAXEventGenerator.VALUE_ELEMENT.equals(localName)) {
@@ -202,7 +205,7 @@
     /**
      * {@inheritDoc}
      */
-    public void ignorableWhitespace(char ch[], int start, int length)
+    public void ignorableWhitespace(char[] ch, int start, int length)
             throws SAXException {
         if (currentPropValue != null) {
             // property value

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/xml/WorkspaceImporter.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/xml/WorkspaceImporter.java?rev=164007&r1=164006&r2=164007&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/xml/WorkspaceImporter.java (original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/xml/WorkspaceImporter.java Wed Apr 20 23:04:21 2005
@@ -1,7 +1,7 @@
 /*
  * Copyright 2004-2005 The Apache Software Foundation or its licensors,
  *                     as applicable.
-  *
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -351,20 +351,20 @@
 /*
         // FIXME delegate to NodeTypeInstanceHandler
         } else if (MIX_VERSIONABLE.equals(declaringNT)) {
-	    // mix:versionable node type
-	    if (JCR_VERSIONHISTORY.equals(name)) {
-		// jcr:versionHistory property
-		genValues = new InternalValue[]{InternalValue.create(new UUID(hist.getUUID()))};
-	    } else if (JCR_BASEVERSION.equals(name)) {
-		// jcr:baseVersion property
-		genValues = new InternalValue[]{InternalValue.create(new UUID(hist.getRootVersion().getUUID()))};
-	    } else if (JCR_ISCHECKEDOUT.equals(name)) {
-		// jcr:isCheckedOut property
-		genValues = new InternalValue[]{InternalValue.create(true)};
-	    } else if (JCR_PREDECESSORS.equals(name)) {
-		// jcr:predecessors property
-		genValues = new InternalValue[]{InternalValue.create(new UUID(hist.getRootVersion().getUUID()))};
-	    }
+        // mix:versionable node type
+        if (JCR_VERSIONHISTORY.equals(name)) {
+        // jcr:versionHistory property
+        genValues = new InternalValue[]{InternalValue.create(new UUID(hist.getUUID()))};
+        } else if (JCR_BASEVERSION.equals(name)) {
+        // jcr:baseVersion property
+        genValues = new InternalValue[]{InternalValue.create(new UUID(hist.getRootVersion().getUUID()))};
+        } else if (JCR_ISCHECKEDOUT.equals(name)) {
+        // jcr:isCheckedOut property
+        genValues = new InternalValue[]{InternalValue.create(true)};
+        } else if (JCR_PREDECESSORS.equals(name)) {
+        // jcr:predecessors property
+        genValues = new InternalValue[]{InternalValue.create(new UUID(hist.getRootVersion().getUUID()))};
+        }
 */
         }