You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by im...@apache.org on 2006/04/07 19:09:32 UTC

svn commit: r392337 - /myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/renderkit/html/util/WebXmlFilterHandler.java

Author: imario
Date: Fri Apr  7 10:09:32 2006
New Revision: 392337

URL: http://svn.apache.org/viewcvs?rev=392337&view=rev
Log:
quickfix to get rid of whitespace. after the release I'll use the default myfaces WebXmlParser

Modified:
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/renderkit/html/util/WebXmlFilterHandler.java

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/renderkit/html/util/WebXmlFilterHandler.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/renderkit/html/util/WebXmlFilterHandler.java?rev=392337&r1=392336&r2=392337&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/renderkit/html/util/WebXmlFilterHandler.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/renderkit/html/util/WebXmlFilterHandler.java Fri Apr  7 10:09:32 2006
@@ -154,7 +154,7 @@
 
 	protected void addUrlPattern()
 	{
-		String filterName = currentFilterName.toString();
+		String filterName = currentFilterName.toString().trim();
 		
 		FilterEntry filter = (FilterEntry) foundFilters.get(filterName);
 		if (filter == null)
@@ -163,12 +163,12 @@
 			return;
 		}
 		
-		filter.urlPatterns.add(currentUrlPattern.toString());
+		filter.urlPatterns.add(currentUrlPattern.toString().trim());
 	}
 
 	protected void registerFilter()
 	{
-		String filterClass = currentFilterClass.toString();
+		String filterClass = currentFilterClass.toString().trim();
 		if (!org.apache.myfaces.component.html.util.ExtensionsFilter.class.getName().equals(filterClass) &&
 			!org.apache.myfaces.webapp.filter.ExtensionsFilter.class.getName().equals(filterClass))
 		{
@@ -176,7 +176,7 @@
 			return;
 		}
 		
-		String filterName = currentFilterName.toString();
+		String filterName = currentFilterName.toString().trim();
 		
 		foundFilters.put(filterName, new FilterEntry(filterName, filterClass));
 	}