subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1499612 - in /subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl: ISVNRemote.java remote/RemoteSession.java
Date Thu, 04 Jul 2013 01:15:07 GMT
Author: brane
Date: Thu Jul  4 01:15:06 2013
New Revision: 1499612

URL: http://svn.apache.org/r1499612
Log:
Remove an unnecessary limitation from JavaHL's svn_ra_get_dir wrapper.

[in subversion/bindings/javahl/src/org/apache/subversion/javahl]
* ISVNRemote.java (ISVNRemote.getDirectory): Remove limitation on
   direntFields from the docstring. And, ...
* remote/RemoteSession.java (ISVNRemote.getDirectory): ... remove the
   check from the implementation.

Modified:
    subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNRemote.java
    subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/remote/RemoteSession.java

Modified: subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNRemote.java
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNRemote.java?rev=1499612&r1=1499611&r2=1499612&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNRemote.java
(original)
+++ subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNRemote.java
Thu Jul  4 01:15:06 2013
@@ -269,8 +269,6 @@ public interface ISVNRemote
      * <code>properties</code> may not perform any ISVNRemote
      * operations using this session.
      * @return The revision of the directory that was retreived.
-     * @throws IllegalArgumentException if <code>direntFields</code>
-     *         is less than or equal to 0.
      * @throws ClientException
      */
     long getDirectory(long revision, String path,

Modified: subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/remote/RemoteSession.java
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/remote/RemoteSession.java?rev=1499612&r1=1499611&r2=1499612&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/remote/RemoteSession.java
(original)
+++ subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/remote/RemoteSession.java
Thu Jul  4 01:15:06 2013
@@ -150,9 +150,6 @@ public class RemoteSession extends JNIOb
                              Map<String, byte[]> properties)
             throws ClientException
     {
-        if (direntFields <= 0 && direntFields != DirEntry.Fields.all)
-            throw new IllegalArgumentException(
-                "direntFields must be positive or DirEntry.Fields.all");
         maybe_clear(dirents);
         maybe_clear(properties);
         return nativeGetDirectory(revision, path,



Mime
View raw message