camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1171742 - in /camel/branches/camel-2.8.x: camel-core/src/main/java/org/apache/camel/util/ components/camel-http/src/main/java/org/apache/camel/component/http/ components/camel-jetty/src/test/java/org/apache/camel/component/jetty/ component...
Date Fri, 16 Sep 2011 19:30:08 GMT
Author: dkulp
Date: Fri Sep 16 19:30:07 2011
New Revision: 1171742

URL: http://svn.apache.org/viewvc?rev=1171742&view=rev
Log:
Fix some eclipse warnings on the 2.8.x branch

Modified:
    camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
    camel/branches/camel-2.8.x/components/camel-http/src/main/java/org/apache/camel/component/http/HttpProducer.java
    camel/branches/camel-2.8.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerTwoParametersWithSameKeyTest.java
    camel/branches/camel-2.8.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySimulateInOnlyTest.java
    camel/branches/camel-2.8.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/jettyproducer/HttpJettyProducerTwoParametersWithSameKeyTest.java

Modified: camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/util/LRUCache.java?rev=1171742&r1=1171741&r2=1171742&view=diff
==============================================================================
--- camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
(original)
+++ camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
Fri Sep 16 19:30:07 2011
@@ -16,6 +16,7 @@
  */
 package org.apache.camel.util;
 
+import java.io.Serializable;
 import java.util.AbstractMap;
 import java.util.Collection;
 import java.util.Map;
@@ -30,7 +31,7 @@ import org.apache.camel.Service;
  *
  * @version 
  */
-public class LRUCache<K, V> implements Service, Map<K, V> {
+public class LRUCache<K, V> implements Service, Map<K, V>, Serializable {
     private static final long serialVersionUID = -342098639681884414L;
     private int maxCacheSize = 10000;
     private final AtomicLong hits = new AtomicLong();
@@ -102,7 +103,7 @@ public class LRUCache<K, V> implements S
 
     @Override
     public void putAll(Map<? extends K, ? extends V> map) {
-        ((AbstractMap)map).putAll(map);
+        this.map.putAll(map);
     }
 
     @Override

Modified: camel/branches/camel-2.8.x/components/camel-http/src/main/java/org/apache/camel/component/http/HttpProducer.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.8.x/components/camel-http/src/main/java/org/apache/camel/component/http/HttpProducer.java?rev=1171742&r1=1171741&r2=1171742&view=diff
==============================================================================
--- camel/branches/camel-2.8.x/components/camel-http/src/main/java/org/apache/camel/component/http/HttpProducer.java
(original)
+++ camel/branches/camel-2.8.x/components/camel-http/src/main/java/org/apache/camel/component/http/HttpProducer.java
Fri Sep 16 19:30:07 2011
@@ -319,6 +319,7 @@ public class HttpProducer extends Defaul
      * @return the created method as either GET or POST
      * @throws CamelExchangeException is thrown if error creating RequestEntity
      */
+    @SuppressWarnings("deprecation")
     protected HttpMethod createMethod(Exchange exchange) throws CamelExchangeException {
 
         String url = HttpHelper.createURL(exchange, getEndpoint());

Modified: camel/branches/camel-2.8.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerTwoParametersWithSameKeyTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.8.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerTwoParametersWithSameKeyTest.java?rev=1171742&r1=1171741&r2=1171742&view=diff
==============================================================================
--- camel/branches/camel-2.8.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerTwoParametersWithSameKeyTest.java
(original)
+++ camel/branches/camel-2.8.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerTwoParametersWithSameKeyTest.java
Fri Sep 16 19:30:07 2011
@@ -89,7 +89,7 @@ public class HttpProducerTwoParametersWi
                         // response
                         exchange.getOut().setBody("OK");
                         // use multiple values for the foo header in the reply
-                        List list = new ArrayList();
+                        List<Integer> list = new ArrayList<Integer>();
                         list.add(123);
                         list.add(456);
                         exchange.getOut().setHeader("foo", list);

Modified: camel/branches/camel-2.8.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySimulateInOnlyTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.8.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySimulateInOnlyTest.java?rev=1171742&r1=1171741&r2=1171742&view=diff
==============================================================================
--- camel/branches/camel-2.8.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySimulateInOnlyTest.java
(original)
+++ camel/branches/camel-2.8.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySimulateInOnlyTest.java
Fri Sep 16 19:30:07 2011
@@ -17,6 +17,7 @@
 package org.apache.camel.component.jetty;
 
 import org.apache.camel.Exchange;
+import org.apache.camel.ExchangePattern;
 import org.apache.camel.Processor;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
@@ -84,7 +85,7 @@ public class JettySimulateInOnlyTest ext
                     // turn the route to in only as we do not want jetty to wait for the
response
                     // we can do this by changing the MEP and sending to a seda endpoint
to spin off
                     // a new thread continue doing the routing
-                    .inOnly().to("seda:continue")
+                    .setExchangePattern(ExchangePattern.InOnly).to("seda:continue")
                     // and then construct a canned empty response
                     .transform(constant("OK"));
 

Modified: camel/branches/camel-2.8.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/jettyproducer/HttpJettyProducerTwoParametersWithSameKeyTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.8.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/jettyproducer/HttpJettyProducerTwoParametersWithSameKeyTest.java?rev=1171742&r1=1171741&r2=1171742&view=diff
==============================================================================
--- camel/branches/camel-2.8.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/jettyproducer/HttpJettyProducerTwoParametersWithSameKeyTest.java
(original)
+++ camel/branches/camel-2.8.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/jettyproducer/HttpJettyProducerTwoParametersWithSameKeyTest.java
Fri Sep 16 19:30:07 2011
@@ -105,7 +105,7 @@ public class HttpJettyProducerTwoParamet
                         // response
                         exchange.getOut().setBody("OK");
                         // use multiple values for the foo header in the reply
-                        List list = new ArrayList();
+                        List<Integer> list = new ArrayList<Integer>();
                         list.add(123);
                         list.add(456);
                         exchange.getOut().setHeader("foo", list);



Mime
View raw message