cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r979798 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/UriBuilderImpl.java
Date Tue, 27 Jul 2010 18:34:32 GMT
Author: dkulp
Date: Tue Jul 27 18:34:31 2010
New Revision: 979798

URL: http://svn.apache.org/viewvc?rev=979798&view=rev
Log:
Fix java5 compile failure

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/UriBuilderImpl.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/UriBuilderImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/UriBuilderImpl.java?rev=979798&r1=979797&r2=979798&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/UriBuilderImpl.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/UriBuilderImpl.java
Tue Jul 27 18:34:31 2010
@@ -128,7 +128,7 @@ public class UriBuilderImpl extends UriB
             return new URI(b.toString());
         } else if (!isSchemeOpaque()) {
             if ((scheme != null || host != null || userInfo != null)
-                && !thePath.isEmpty() && !thePath.startsWith("/")) {
+                && thePath.length() != 0 && !thePath.startsWith("/")) {
                 thePath = "/" + thePath;
             }
             



Mime
View raw message