forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r123851 - /forrest/trunk/main/java/org/apache/forrest/util/IdGeneratorTransformer.java
Date Sat, 01 Jan 2005 19:19:46 GMT
Author: antonio
Date: Sat Jan  1 11:19:46 2005
New Revision: 123851

URL: http://svn.apache.org/viewcvs?view=rev&rev=123851
Log:
Fix trim()
Modified:
   forrest/trunk/main/java/org/apache/forrest/util/IdGeneratorTransformer.java

Modified: forrest/trunk/main/java/org/apache/forrest/util/IdGeneratorTransformer.java
Url: http://svn.apache.org/viewcvs/forrest/trunk/main/java/org/apache/forrest/util/IdGeneratorTransformer.java?view=diff&rev=123851&p1=forrest/trunk/main/java/org/apache/forrest/util/IdGeneratorTransformer.java&r1=123850&p2=forrest/trunk/main/java/org/apache/forrest/util/IdGeneratorTransformer.java&r2=123851
==============================================================================
--- forrest/trunk/main/java/org/apache/forrest/util/IdGeneratorTransformer.java	(original)
+++ forrest/trunk/main/java/org/apache/forrest/util/IdGeneratorTransformer.java	Sat Jan  1
11:19:46 2005
@@ -168,8 +168,7 @@
                 getLogger().debug("## Using id XPath "+idXPath);
                 String id = null;
                 try {
-                  id = processor.evaluateAsString(sect, idXPath);
-                  id.trim();
+                  id = processor.evaluateAsString(sect, idXPath).trim();
                 } catch (Exception e) {
                     throw new SAXException("'id' XPath expression '"+idXPath+"' does not
return a text node: "+e, e);
                 }

Mime
View raw message