cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r761760 - in /cxf/branches/2.1.x-fixes/rt: frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/ transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/
Date Fri, 03 Apr 2009 19:01:30 GMT
Author: dkulp
Date: Fri Apr  3 19:01:30 2009
New Revision: 761760

URL: http://svn.apache.org/viewvc?rev=761760&view=rev
Log:
Fix some eclipse warnings

Modified:
    cxf/branches/2.1.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java
    cxf/branches/2.1.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java
    cxf/branches/2.1.x-fixes/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java

Modified: cxf/branches/2.1.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.1.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java?rev=761760&r1=761759&r2=761760&view=diff
==============================================================================
--- cxf/branches/2.1.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java
(original)
+++ cxf/branches/2.1.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java
Fri Apr  3 19:01:30 2009
@@ -325,7 +325,6 @@
         return theValues;
     }
     
-    @SuppressWarnings("unchecked")
     public static Object injectIntoArray(Type genericType, List<String> values,
                                          boolean decoded, ParameterType pathParam, Message
message) {
         Class<?> realType = InjectionUtils.getActualType(genericType);

Modified: cxf/branches/2.1.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.1.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java?rev=761760&r1=761759&r2=761760&view=diff
==============================================================================
--- cxf/branches/2.1.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java
(original)
+++ cxf/branches/2.1.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java
Fri Apr  3 19:01:30 2009
@@ -554,7 +554,6 @@
         
     }
     
-    @SuppressWarnings("unchecked")
     private static Object processCookieParam(Message m, String cookieName, 
                               Class<?> pClass, Type genericType, String defaultValue)
{
         List<String> values = new HttpHeadersImpl(m).getRequestHeader(HttpHeaders.COOKIE);

Modified: cxf/branches/2.1.x-fixes/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.1.x-fixes/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java?rev=761760&r1=761759&r2=761760&view=diff
==============================================================================
--- cxf/branches/2.1.x-fixes/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
(original)
+++ cxf/branches/2.1.x-fixes/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
Fri Apr  3 19:01:30 2009
@@ -51,7 +51,6 @@
 import org.mortbay.jetty.servlet.HashSessionIdManager;
 import org.mortbay.jetty.servlet.HashSessionManager;
 import org.mortbay.jetty.servlet.SessionHandler;
-import org.mortbay.thread.BoundedThreadPool;
 import org.mortbay.thread.QueuedThreadPool;
 
 /**
@@ -273,6 +272,7 @@
      * @param url the URL associated with the servant
      * @param handler notified on incoming HTTP requests
      */
+    @SuppressWarnings("deprecation")
     public synchronized void addServant(URL url, JettyHTTPHandler handler) {
         if (server == null) {
             DefaultHandler defaultHandler = null;
@@ -306,8 +306,9 @@
                
                 AbstractConnector aconn = (AbstractConnector) connector;
                 if (isSetThreadingParameters()) {
-                    if (aconn.getThreadPool() instanceof BoundedThreadPool) {
-                        BoundedThreadPool pool = (BoundedThreadPool)aconn.getThreadPool();
+                    if (aconn.getThreadPool() instanceof org.mortbay.thread.BoundedThreadPool)
{
+                        org.mortbay.thread.BoundedThreadPool pool 
+                            = (org.mortbay.thread.BoundedThreadPool)aconn.getThreadPool();
                         if (getThreadingParameters().isSetMinThreads()) {
                             pool.setMinThreads(getThreadingParameters().getMinThreads());
                         }



Mime
View raw message