Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 96039 invoked from network); 15 Dec 2009 13:23:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Dec 2009 13:23:41 -0000 Received: (qmail 98190 invoked by uid 500); 15 Dec 2009 13:23:40 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 98133 invoked by uid 500); 15 Dec 2009 13:23:40 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 98125 invoked by uid 99); 15 Dec 2009 13:23:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Dec 2009 13:23:40 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Dec 2009 13:23:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 16206234C498 for ; Tue, 15 Dec 2009 05:23:18 -0800 (PST) Message-ID: <2020160509.1260883398075.JavaMail.jira@brutus> Date: Tue, 15 Dec 2009 13:23:18 +0000 (UTC) From: "Uwe Schindler (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-2157) DelimitedPayloadTokenFilter copies the bufer over itsself. Instead it should only set the length. Also optimize logic. In-Reply-To: <678369853.1260816200875.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-2157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Uwe Schindler updated LUCENE-2157: ---------------------------------- Attachment: LUCENE-2157.patch Final patch, will commit this soon. I verified, that the code is correct accoring to NIO CharsetEncoder.encode() > DelimitedPayloadTokenFilter copies the bufer over itsself. Instead it should only set the length. Also optimize logic. > ---------------------------------------------------------------------------------------------------------------------- > > Key: LUCENE-2157 > URL: https://issues.apache.org/jira/browse/LUCENE-2157 > Project: Lucene - Java > Issue Type: Improvement > Components: contrib/analyzers > Affects Versions: 3.0 > Reporter: Uwe Schindler > Assignee: Uwe Schindler > Priority: Minor > Fix For: 3.1 > > Attachments: LUCENE-2157.patch, LUCENE-2157.patch, LUCENE-2157.patch > > > This is a small improvement I found when looking around. It is also a bad idea to copy a array over itsself. > All tests pass, will commit later! -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org