Skip to content

Commit 2ec2822

Browse files
author
Xuan Dai
committed
GERONIMODEVTOOLS-283 improve implementation to avoid possible failure with JDK6
git-svn-id: https://svn.apache.org/repos/asf/geronimo/devtools/eclipse-plugin/branches/2.1.5@919272 13f79535-47bb-0310-9956-ffa450edef68
1 parent fabf90f commit 2ec2822

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/refactoring/DeploymentPlanHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void characters(char[] ch, int start, int length)
7272
//ch doesn't contains XML declare statement at the beginning of deployment plan
7373
//get the character number of first line
7474
int xmlDeclareLength = getXMLDeclareLength();
75-
wtn.setOffset(xmlDeclareLength + start - 1);
75+
wtn.setOffset(xmlDeclareLength + start);
7676
} catch (IOException e) {
7777
e.printStackTrace();
7878
}
@@ -149,7 +149,7 @@ protected int getXMLDeclareLength()
149149
do {
150150
current = br.read();
151151
offset++;
152-
} while (current != '\n');
152+
} while (current != '>');
153153

154154
br.close();
155155

0 commit comments

Comments
 (0)