incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r907969 - /sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/CopyOperation.java
Date Tue, 09 Feb 2010 08:42:41 GMT
Author: cziegeler
Date: Tue Feb  9 08:42:40 2010
New Revision: 907969

URL: http://svn.apache.org/viewvc?rev=907969&view=rev
Log:
Cleanup

Modified:
    sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/CopyOperation.java

Modified: sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/CopyOperation.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/CopyOperation.java?rev=907969&r1=907968&r2=907969&view=diff
==============================================================================
--- sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/CopyOperation.java
(original)
+++ sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/CopyOperation.java
Tue Feb  9 08:42:40 2010
@@ -71,9 +71,8 @@
             throws RepositoryException {
         if (src.isNode()) {
             return copy((Node) src, dstParent, name);
-        } else {
-            return copy((Property) src, dstParent, name);
         }
+        return copy((Property) src, dstParent, name);
     }
 
     /**
@@ -156,9 +155,8 @@
 
             if (src.getDefinition().isMultiple()) {
                 return dstParent.setProperty(name, src.getValues());
-            } else {
-                return dstParent.setProperty(name, src.getValue());
             }
+            return dstParent.setProperty(name, src.getValue());
         }
         return null;
     }



Mime
View raw message