forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r698921 - in /forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl: XMLStructurer.java helper/Captions.java
Date Thu, 25 Sep 2008 10:47:10 GMT
Author: thorsten
Date: Thu Sep 25 03:47:10 2008
New Revision: 698921

URL: http://svn.apache.org/viewvc?rev=698921&view=rev
Log:
Extracting constant name

Modified:
    forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/XMLStructurer.java
    forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/helper/Captions.java

Modified: forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/XMLStructurer.java
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/XMLStructurer.java?rev=698921&r1=698920&r2=698921&view=diff
==============================================================================
--- forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/XMLStructurer.java
(original)
+++ forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/XMLStructurer.java
Thu Sep 25 03:47:10 2008
@@ -260,7 +260,7 @@
       int resultEvent = contractResultReader.next();
       switch (resultEvent) {
       case XMLStreamConstants.START_ELEMENT:
-        if (contractResultReader.getLocalName().equals("part")) {
+        if (contractResultReader.getLocalName().equals(Captions.PART_ELEMENT)) {
           // Get attribute names
           for (int i = 0; i < contractResultReader.getAttributeCount(); i++) {
             String localName = contractResultReader.getAttributeLocalName(i);

Modified: forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/helper/Captions.java
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/helper/Captions.java?rev=698921&r1=698920&r2=698921&view=diff
==============================================================================
--- forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/helper/Captions.java
(original)
+++ forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/helper/Captions.java
Thu Sep 25 03:47:10 2008
@@ -60,4 +60,6 @@
 
   public static final String RESULT_XPATH = "xpath";
 
+  public static final String PART_ELEMENT = "part";
+
 }



Mime
View raw message