cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1515824 - /cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/AbstractGenericBookStoreSpring.java
Date Tue, 20 Aug 2013 13:46:00 GMT
Author: sergeyb
Date: Tue Aug 20 13:46:00 2013
New Revision: 1515824

URL: http://svn.apache.org/r1515824
Log:
Minor update to the test

Modified:
    cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/AbstractGenericBookStoreSpring.java

Modified: cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/AbstractGenericBookStoreSpring.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/AbstractGenericBookStoreSpring.java?rev=1515824&r1=1515823&r2=1515824&view=diff
==============================================================================
--- cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/AbstractGenericBookStoreSpring.java
(original)
+++ cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/AbstractGenericBookStoreSpring.java
Tue Aug 20 13:46:00 2013
@@ -20,6 +20,7 @@
 package org.apache.cxf.systest.jaxrs;
 
 
+import java.util.Collections;
 import java.util.List;
 
 import javax.ws.rs.Consumes;
@@ -30,8 +31,6 @@ import javax.ws.rs.Produces;
 import javax.ws.rs.WebApplicationException;
 import javax.ws.rs.core.GenericEntity;
 
-import edu.emory.mathcs.backport.java.util.Collections;
-
 @Path("/")
 @Consumes({"application/json", "application/xml" })
 @Produces({"application/json", "application/xml" })
@@ -59,7 +58,8 @@ public abstract class AbstractGenericBoo
     @GET
     @Path("/books/superbooks2")
     public GenericEntity<List<T>> getSuperBookCollectionGenericEntity() {
-        return new GenericEntity<List<T>>(Collections.singletonList(new SuperBook("Super",
124L, true))) {
+        return new GenericEntity<List<T>>((List<T>)Collections.singletonList(
+            new SuperBook("Super", 124L, true))) {
         };
     }
     



Mime
View raw message