Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 95942 invoked from network); 5 Mar 2010 02:57:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Mar 2010 02:57:59 -0000 Received: (qmail 85926 invoked by uid 500); 5 Mar 2010 02:57:46 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 85799 invoked by uid 500); 5 Mar 2010 02:57:46 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 85792 invoked by uid 99); 5 Mar 2010 02:57:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Mar 2010 02:57: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; Fri, 05 Mar 2010 02:57:45 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E82CE238897A; Fri, 5 Mar 2010 02:57:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r919274 - /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/refactoring/DeploymentPlanHandler.java Date: Fri, 05 Mar 2010 02:57:25 -0000 To: scm@geronimo.apache.org From: delos@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100305025725.E82CE238897A@eris.apache.org> Author: delos Date: Fri Mar 5 02:57:25 2010 New Revision: 919274 URL: http://svn.apache.org/viewvc?rev=919274&view=rev Log: GERONIMODEVTOOLS-283 improve implementation to avoid possible failure with JDK6 Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/refactoring/DeploymentPlanHandler.java Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/refactoring/DeploymentPlanHandler.java URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/refactoring/DeploymentPlanHandler.java?rev=919274&r1=919273&r2=919274&view=diff ============================================================================== --- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/refactoring/DeploymentPlanHandler.java (original) +++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/refactoring/DeploymentPlanHandler.java Fri Mar 5 02:57:25 2010 @@ -72,7 +72,7 @@ //ch doesn't contains XML declare statement at the beginning of deployment plan //get the character number of first line int xmlDeclareLength = getXMLDeclareLength(); - wtn.setOffset(xmlDeclareLength + start - 1); + wtn.setOffset(xmlDeclareLength + start); } catch (IOException e) { e.printStackTrace(); } @@ -149,7 +149,7 @@ do { current = br.read(); offset++; - } while (current != '\n'); + } while (current != '>'); br.close();