geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From de...@apache.org
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 GMT
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();
 



Mime
View raw message