directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r447322 - /directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java
Date Mon, 18 Sep 2006 08:50:23 GMT
Author: elecharny
Date: Mon Sep 18 01:50:23 2006
New Revision: 447322

URL: http://svn.apache.org/viewvc?view=rev&rev=447322
Log:
Fixed DIRSERVER-743 : the isFirstLine flag was unset in the wrong place.

Modified:
    directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java

Modified: directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java
URL: http://svn.apache.org/viewvc/directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java?view=diff&rev=447322&r1=447321&r2=447322
==============================================================================
--- directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java
(original)
+++ directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java
Mon Sep 18 01:50:23 2006
@@ -1413,8 +1413,6 @@
                     }
                 }
 
-                isFirstLine = false;
-
                 // We will read the first line which is not a comment
                 switch ( line.charAt( 0 ) )
                 {
@@ -1423,6 +1421,8 @@
                         break;
 
                     case ' ':
+                        isFirstLine = false;
+
                         if ( insideComment )
                         {
                             continue;
@@ -1441,6 +1441,8 @@
                         break;
 
                     default:
+                        isFirstLine = false;
+
                         // We have found a new entry
                         // First, stores the previous one if any.
                         if ( sb.length() != 0 )



Mime
View raw message