From commits-return-27342-apmail-directory-commits-archive=directory.apache.org@directory.apache.org Tue Sep 07 13:21:50 2010 Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 68092 invoked from network); 7 Sep 2010 13:21:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Sep 2010 13:21:49 -0000 Received: (qmail 18435 invoked by uid 500); 7 Sep 2010 13:21:49 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 18373 invoked by uid 500); 7 Sep 2010 13:21:47 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 18366 invoked by uid 99); 7 Sep 2010 13:21:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 13:21:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 13:21:45 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id BAA4F2388A40; Tue, 7 Sep 2010 13:21:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r993345 - /directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java Date: Tue, 07 Sep 2010 13:21:25 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100907132125.BAA4F2388A40@eris.apache.org> 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 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 // ::= ' ' | 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;