Revision: 1408
          http://stripes.svn.sourceforge.net/stripes/?rev=1408&view=rev
Author:   bengunter
Date:     2011-03-03 19:22:23 +0000 (Thu, 03 Mar 2011)

Log Message:
-----------
Fixed STS-798: UrlBindingFactory.parseUrlBinding() code does not match 
documentation

Modified Paths:
--------------
    
branches/1.5.x/stripes/src/net/sourceforge/stripes/controller/UrlBindingFactory.java

Modified: 
branches/1.5.x/stripes/src/net/sourceforge/stripes/controller/UrlBindingFactory.java
===================================================================
--- 
branches/1.5.x/stripes/src/net/sourceforge/stripes/controller/UrlBindingFactory.java
        2011-03-03 19:13:49 UTC (rev 1407)
+++ 
branches/1.5.x/stripes/src/net/sourceforge/stripes/controller/UrlBindingFactory.java
        2011-03-03 19:22:23 UTC (rev 1408)
@@ -569,7 +569,7 @@
 
     /**
      * Parse the binding pattern and create a {@link UrlBinding} object for 
the {@link ActionBean}
-     * class. If pattern is null or zero-length, then return null.
+     * class. If pattern is null, then return null.
      * 
      * @param beanType The {@link ActionBean} type to be mapped to the pattern.
      * @param pattern The URL binding pattern to parse.
@@ -582,7 +582,7 @@
             return null;
 
         // make sure it starts with /
-        if (pattern == null || pattern.length() < 1 || 
!pattern.startsWith("/")) {
+        if (!pattern.startsWith("/")) {
             throw new ParseException(pattern, "A URL binding must begin with 
/");
         }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to