You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2010/01/22 09:39:01 UTC
svn commit: r902035 -
/camel/trunk/components/camel-web/src/main/java/org/apache/camel/web/util/JAXBContextResolverOSGI.java
Author: ningjiang
Date: Fri Jan 22 08:39:00 2010
New Revision: 902035
URL: http://svn.apache.org/viewvc?rev=902035&view=rev
Log:
Fixed the CS error of camel-web
Modified:
camel/trunk/components/camel-web/src/main/java/org/apache/camel/web/util/JAXBContextResolverOSGI.java
Modified: camel/trunk/components/camel-web/src/main/java/org/apache/camel/web/util/JAXBContextResolverOSGI.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/java/org/apache/camel/web/util/JAXBContextResolverOSGI.java?rev=902035&r1=902034&r2=902035&view=diff
==============================================================================
--- camel/trunk/components/camel-web/src/main/java/org/apache/camel/web/util/JAXBContextResolverOSGI.java (original)
+++ camel/trunk/components/camel-web/src/main/java/org/apache/camel/web/util/JAXBContextResolverOSGI.java Fri Jan 22 08:39:00 2010
@@ -16,20 +16,12 @@
*/
package org.apache.camel.web.util;
-import java.util.Arrays;
-import java.util.HashSet;
-import java.util.Set;
-
-import com.sun.jersey.api.json.JSONConfiguration;
-import com.sun.jersey.api.json.JSONJAXBContext;
-
import javax.ws.rs.ext.ContextResolver;
import javax.ws.rs.ext.Provider;
import javax.xml.bind.JAXBContext;
-import org.apache.camel.web.model.Camel;
-import org.apache.camel.web.model.EndpointLink;
-import org.apache.camel.web.model.Endpoints;
+import com.sun.jersey.api.json.JSONConfiguration;
+import com.sun.jersey.api.json.JSONJAXBContext;
/**
* A resolver of the JAXB context OSGI primed for the Camel XML languages
@@ -44,7 +36,7 @@
public JAXBContextResolverOSGI() throws Exception {
this.packages = org.apache.camel.web.resources.Constants.JAXB_PACKAGES;
- this.context = new JSONJAXBContext( JSONConfiguration.natural().build(), this.packages );
+ this.context = new JSONJAXBContext(JSONConfiguration.natural().build(), this.packages);
}