jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r439853 - in /jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml: BufferedStringValue.java NodeInfo.java PropInfo.java StringValue.java
Date Sun, 03 Sep 2006 22:32:06 GMT
Author: jukka
Date: Sun Sep  3 15:32:05 2006
New Revision: 439853

URL: http://svn.apache.org/viewvc?view=rev&rev=439853
Log:
JCR-97: Improved checkstyle conformance in o.a.j.core.xml.

Modified:
    jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/BufferedStringValue.java
    jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/NodeInfo.java
    jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/PropInfo.java
    jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/StringValue.java

Modified: jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/BufferedStringValue.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/BufferedStringValue.java?view=diff&rev=439853&r1=439852&r2=439853
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/BufferedStringValue.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/BufferedStringValue.java
Sun Sep  3 15:32:05 2006
@@ -234,7 +234,7 @@
                 // NAME and PATH require special treatment because
                 // they depend on the current namespace context
                 // of the xml document
-                
+
                 // convert serialized value to InternalValue using
                 // current namespace context of xml document
                 InternalValue ival =
@@ -326,4 +326,4 @@
             log.warn("this instance has already been disposed");
         }
     }
-}
\ No newline at end of file
+}

Modified: jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/NodeInfo.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/NodeInfo.java?view=diff&rev=439853&r1=439852&r2=439853
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/NodeInfo.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/NodeInfo.java
Sun Sep  3 15:32:05 2006
@@ -26,7 +26,7 @@
  * <p>
  * An instance of this class is simply a container for the node name,
  * node identifier, and the node type information. See the {@link PropInfo}
- * class for the related carrier of property information. 
+ * class for the related carrier of property information.
  */
 public class NodeInfo {
 
@@ -77,7 +77,7 @@
 
     /**
      * Returns the name of the primary type of the node being imported.
-     * 
+     *
      * @return primary type name
      */
     public QName getNodeTypeName() {
@@ -86,7 +86,7 @@
 
     /**
      * Returns the names of the mixin types of the node being imported.
-     * 
+     *
      * @return mixin type names
      */
     public QName[] getMixinNames() {
@@ -95,7 +95,7 @@
 
     /**
      * Returns the identifier of the node being imported.
-     * 
+     *
      * @return node identifier
      */
     public NodeId getId() {

Modified: jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/PropInfo.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/PropInfo.java?view=diff&rev=439853&r1=439852&r2=439853
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/PropInfo.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/PropInfo.java
Sun Sep  3 15:32:05 2006
@@ -17,14 +17,11 @@
 package org.apache.jackrabbit.core.xml;
 
 import javax.jcr.ItemExistsException;
-import javax.jcr.ItemNotFoundException;
 import javax.jcr.PropertyType;
 import javax.jcr.RepositoryException;
 import javax.jcr.Value;
 import javax.jcr.ValueFormatException;
-import javax.jcr.lock.LockException;
 import javax.jcr.nodetype.ConstraintViolationException;
-import javax.jcr.version.VersionException;
 
 import org.apache.jackrabbit.core.BatchedItemOperations;
 import org.apache.jackrabbit.core.NodeImpl;
@@ -117,7 +114,9 @@
         }
     }
 
-    public void apply(NodeImpl node, NamespaceResolver resolver, ReferenceChangeTracker refTracker)
throws RepositoryException, ConstraintViolationException, ValueFormatException, VersionException,
LockException, ItemNotFoundException {
+    public void apply(
+            NodeImpl node, NamespaceResolver resolver,
+            ReferenceChangeTracker refTracker) throws RepositoryException {
         // find applicable definition
         PropDef def = getApplicablePropertyDef(node.getEffectiveNodeType());
         if (def.isProtected()) {
@@ -125,14 +124,14 @@
             log.debug("skipping protected property " + name);
             return;
         }
-        
+
         // convert serialized values to Value objects
         Value[] va = new Value[values.length];
         int targetType = getTargetType(def);
         for (int i = 0; i < values.length; i++) {
             va[i] = values[i].getValue(targetType, resolver);
         }
-        
+
         // multi- or single-valued property?
         if (va.length == 1) {
             // could be single- or multi-valued (n == 1)
@@ -156,7 +155,10 @@
         }
     }
 
-    public void apply(NodeState node, BatchedItemOperations itemOps, NodeTypeRegistry ntReg,
ReferenceChangeTracker refTracker) throws ItemNotFoundException, RepositoryException, ItemExistsException,
ConstraintViolationException, ValueFormatException {
+    public void apply(
+            NodeState node, BatchedItemOperations itemOps,
+            NodeTypeRegistry ntReg, ReferenceChangeTracker refTracker)
+            throws RepositoryException {
         PropertyState prop = null;
         PropDef def = null;
 
@@ -185,7 +187,7 @@
                 log.debug("skipping protected property " + name);
                 return;
             }
-            
+
             // create new property
             prop = itemOps.createPropertyState(node, name, type, def);
         }

Modified: jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/StringValue.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/StringValue.java?view=diff&rev=439853&r1=439852&r2=439853
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/StringValue.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/StringValue.java
Sun Sep  3 15:32:05 2006
@@ -57,7 +57,7 @@
             // NAME and PATH require special treatment because
             // they depend on the current namespace context
             // of the xml document
-            
+
             // convert serialized value to InternalValue using
             // current namespace context of xml document
             InternalValue ival =
@@ -98,4 +98,4 @@
         // do nothing
     }
 
-}
\ No newline at end of file
+}



Mime
View raw message