cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1042571 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/URITemplate.java
Date Mon, 06 Dec 2010 10:58:13 GMT
Author: sergeyb
Date: Mon Dec  6 10:58:12 2010
New Revision: 1042571

URL: http://svn.apache.org/viewvc?rev=1042571&view=rev
Log:
[CXF-3166] Ignoring all empty values but the last one

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/URITemplate.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/URITemplate.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/URITemplate.java?rev=1042571&r1=1042570&r2=1042571&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/URITemplate.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/URITemplate.java
Mon Dec  6 10:58:12 2010
@@ -174,7 +174,7 @@ public final class URITemplate {
         for (String name : variables) {
             while (i <= groupCount) {
                 String value = m.group(i++);
-                if (value == null || value.length() == 0) {
+                if (value == null || value.length() == 0 && i < groupCount) {
                     continue;
                 }
                 templateVariableToValue.add(name, value);



Mime
View raw message