directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1164826 - in /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/ldif: LdifControl.java LdifReader.java
Date Sat, 03 Sep 2011 08:24:53 GMT
Author: elecharny
Date: Sat Sep  3 08:24:53 2011
New Revision: 1164826

URL: http://svn.apache.org/viewvc?rev=1164826&view=rev
Log:
Replaced some more calls to read() by correct calls to readFully()

Modified:
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/ldif/LdifControl.java
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/ldif/LdifReader.java

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/ldif/LdifControl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/ldif/LdifControl.java?rev=1164826&r1=1164825&r2=1164826&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/ldif/LdifControl.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/ldif/LdifControl.java
Sat Sep  3 08:24:53 2011
@@ -171,7 +171,7 @@ public class LdifControl implements Cont
             if ( valueLength > 0 )
             {
                 value = new byte[valueLength];
-                in.read( value );
+                in.readFully( value );
             }
         }
     }

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/ldif/LdifReader.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/ldif/LdifReader.java?rev=1164826&r1=1164825&r2=1164826&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/ldif/LdifReader.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/ldif/LdifReader.java
Sat Sep  3 08:24:53 2011
@@ -641,7 +641,7 @@ public class LdifReader implements Itera
                                 try
                                 {
                                     inf = new DataInputStream( new FileInputStream( file
) );
-                                    inf.read( data );
+                                    inf.readFully( data );
 
                                     return data;
                                 }



Mime
View raw message