jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r896513 - /jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java
Date Wed, 06 Jan 2010 16:33:24 GMT
Author: jukka
Date: Wed Jan  6 16:33:23 2010
New Revision: 896513

URL: http://svn.apache.org/viewvc?rev=896513&view=rev
Log:
JCR-2439: More utility methods in JcrUtils

As suggested by Toby, put the optional argument last.

Modified:
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java?rev=896513&r1=896512&r2=896513&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java
Wed Jan  6 16:33:23 2010
@@ -458,7 +458,7 @@
     public static Node putFile(
             Node parent, String name, String mime, InputStream data)
             throws RepositoryException {
-        return putFile(parent, name, mime, Calendar.getInstance(), data);
+        return putFile(parent, name, mime, data, Calendar.getInstance());
     }
 
     /**
@@ -492,15 +492,15 @@
      * @param parent parent node
      * @param name name of the file
      * @param mime media type of the file
-     * @param date date of last modification
      * @param data binary content of the file
+     * @param date date of last modification
      * @return the child node
      * @throws RepositoryException if the child node can not be created
      *                             or updated
      */
     public static Node putFile(
-            Node parent, String name, String mime, Calendar date,
-            InputStream data) throws RepositoryException {
+            Node parent, String name, String mime,
+            InputStream data, Calendar date) throws RepositoryException {
         Binary binary =
             parent.getSession().getValueFactory().createBinary(data);
         try {



Mime
View raw message