You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2010/09/07 15:21:25 UTC

svn commit: r993345 - /directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java

Author: elecharny
Date: Tue Sep  7 13:21:25 2010
New Revision: 993345

URL: http://svn.apache.org/viewvc?rev=993345&view=rev
Log:
Having static fields won't work in a concurrent world ;)

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

Modified: directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java?rev=993345&r1=993344&r2=993345&view=diff
==============================================================================
--- directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java (original)
+++ directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java Tue Sep  7 13:21:25 2010
@@ -174,7 +174,7 @@ public class LdifReader implements Itera
     protected List<String> lines;
 
     /** The current position */
-    protected static int position;
+    protected int position;
 
     /** The ldif file version default value */
     protected static final int DEFAULT_VERSION = 1;
@@ -393,7 +393,7 @@ public class LdifReader implements Itera
 
 
     // <fill> ::= ' ' <fill> | e
-    private static void parseFill( char[] document )
+    private void parseFill( char[] document )
     {
         while ( StringTools.isCharASCII( document, position, ' ' ) )
         {
@@ -413,7 +413,7 @@ public class LdifReader implements Itera
      * @param document The document containing the number to parse
      * @return a String representing the parsed number
      */
-    private static String parseNumber( char[] document )
+    private String parseNumber( char[] document )
     {
         int initPos = position;