camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1021685 - in /camel/trunk/camel-core/src: main/java/org/apache/camel/impl/DefaultCamelContext.java test/java/org/apache/camel/converter/stream/FileInputStreamCacheTest.java
Date Tue, 12 Oct 2010 09:01:33 GMT
Author: ningjiang
Date: Tue Oct 12 09:01:32 2010
New Revision: 1021685

URL: http://svn.apache.org/viewvc?rev=1021685&view=rev
Log:
clean up the codes of camel-core

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
    camel/trunk/camel-core/src/test/java/org/apache/camel/converter/stream/FileInputStreamCacheTest.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java?rev=1021685&r1=1021684&r2=1021685&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java Tue
Oct 12 09:01:32 2010
@@ -522,7 +522,7 @@ public class DefaultCamelContext extends
 
     @Deprecated
     public void setRoutes(List<Route> routes) {
-        throw new UnsupportedOperationException("Overriding existing routes is not supported
yet, use addRoutes instead");
+        throw new UnsupportedOperationException("Overriding existing routes is not supported
yet, use addRouteCollection instead");
     }
 
     synchronized void removeRouteCollection(Collection<Route> routes) {

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/converter/stream/FileInputStreamCacheTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/converter/stream/FileInputStreamCacheTest.java?rev=1021685&r1=1021684&r2=1021685&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/converter/stream/FileInputStreamCacheTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/converter/stream/FileInputStreamCacheTest.java
Tue Oct 12 09:01:32 2010
@@ -31,8 +31,7 @@ public class FileInputStreamCacheTest ex
     private static final String TEST_FILE = "src/test/resources/org/apache/camel/converter/stream/test.xml";
 
     public void testFileInputStreamCache() throws Exception {
-        Exchange exchange = new DefaultExchange(context);
-
+       
         File file = new File(TEST_FILE).getAbsoluteFile();
         FileInputStreamCache cache = new FileInputStreamCache(file);
 



Mime
View raw message