wink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r933608 - in /incubator/wink/trunk/wink-common/src: main/java/org/apache/wink/common/internal/UriBuilderImpl.java test/java/org/apache/wink/common/internal/UriBuilderImplTest.java
Date Tue, 13 Apr 2010 13:55:44 GMT
Author: bluk
Date: Tue Apr 13 13:55:44 2010
New Revision: 933608

URL: http://svn.apache.org/viewvc?rev=933608&view=rev
Log:
Fix UriBuilderImpl clone() to use right instance

Modified:
    incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/UriBuilderImpl.java
    incubator/wink/trunk/wink-common/src/test/java/org/apache/wink/common/internal/UriBuilderImplTest.java

Modified: incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/UriBuilderImpl.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/UriBuilderImpl.java?rev=933608&r1=933607&r2=933608&view=diff
==============================================================================
--- incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/UriBuilderImpl.java
(original)
+++ incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/UriBuilderImpl.java
Tue Apr 13 13:55:44 2010
@@ -451,7 +451,7 @@ public class UriBuilderImpl extends UriB
         uriBuilder.segments(this.segments);
         uriBuilder.query(this.query);
         logger.debug("clone() exit"); //$NON-NLS-1$
-        return this;
+        return uriBuilder;
     }
 
     private void query(MultivaluedMap<String, String> query) {

Modified: incubator/wink/trunk/wink-common/src/test/java/org/apache/wink/common/internal/UriBuilderImplTest.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-common/src/test/java/org/apache/wink/common/internal/UriBuilderImplTest.java?rev=933608&r1=933607&r2=933608&view=diff
==============================================================================
--- incubator/wink/trunk/wink-common/src/test/java/org/apache/wink/common/internal/UriBuilderImplTest.java
(original)
+++ incubator/wink/trunk/wink-common/src/test/java/org/apache/wink/common/internal/UriBuilderImplTest.java
Tue Apr 13 13:55:44 2010
@@ -352,6 +352,7 @@ public class UriBuilderImplTest extends 
         String uri1 = builder1.build("v1").toString();
         String uri2 = builder2.build("v1").toString();
         assertEquals(uri1, uri2);
+        assertNotSame(builder1, builder2);
     }
 
     public void testFromUri() throws Exception {



Mime
View raw message