camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r937935 - in /camel/trunk/camel-core/src/main/java/org/apache/camel: builder/ builder/xml/ component/bean/ component/file/ component/file/strategy/ component/mock/ converter/ converter/jaxp/ impl/ impl/converter/ impl/scan/ management/ mode...
Date Mon, 26 Apr 2010 06:05:34 GMT
Author: ningjiang
Date: Mon Apr 26 06:05:33 2010
New Revision: 937935

URL: http://svn.apache.org/viewvc?rev=937935&view=rev
Log:
Removed useless @SuppressWarnings from camel-core source

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ExpressionClause.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/component/bean/BeanInfo.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/component/bean/MethodInfoCache.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/component/bean/ProxyHelper.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileProducer.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategy.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/component/mock/MockEndpoint.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/converter/ObjectConverter.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/converter/jaxp/DomConverter.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ConsumerCache.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultRouteStartupOrder.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ProducerCache.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/AnnotationTypeConverterLoader.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/impl/scan/InvertingPackageScanFilter.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/management/DefaultManagementLifecycleStrategy.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/model/AggregateDefinition.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/model/BeanDefinition.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/model/DataFormatDefinition.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/model/MulticastDefinition.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/model/OnCompletionDefinition.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/model/RecipientListDefinition.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/model/RouteDefinition.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/model/SamplingDefinition.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/model/SplitDefinition.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/model/ThreadsDefinition.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/model/ToDefinition.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/MethodCallExpression.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/processor/BatchProcessor.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/processor/ConvertBodyProcessor.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/processor/MulticastProcessor.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/processor/OnCompletionProcessor.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/processor/UnitOfWorkProcessor.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/processor/idempotent/IdempotentConsumer.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/processor/idempotent/IdempotentOnCompletion.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/processor/resequencer/DefaultExchangeComparator.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/util/URISupport.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/util/concurrent/SubmitOrderedCompletionService.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/util/jndi/JndiContext.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ExpressionClause.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ExpressionClause.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ExpressionClause.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ExpressionClause.java Mon Apr 26 06:05:33 2010
@@ -104,7 +104,6 @@ public class ExpressionClause<T> extends
     /**
      * An expression of an outbound message body converted to the expected type
      */
-    @SuppressWarnings("unchecked")
     public T outBody(Class expectedType) {
         return delegate.outBody(expectedType);
     }

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java Mon Apr 26 06:05:33 2010
@@ -442,7 +442,6 @@ public class XPathBuilder implements Exp
     public XPathFunction getBodyFunction() {
         if (bodyFunction == null) {
             bodyFunction = new XPathFunction() {
-                @SuppressWarnings("unchecked")
                 public Object evaluate(List list) throws XPathFunctionException {
                     if (exchange == null) {
                         return null;
@@ -461,7 +460,6 @@ public class XPathBuilder implements Exp
     public XPathFunction getHeaderFunction() {
         if (headerFunction == null) {
             headerFunction = new XPathFunction() {
-                @SuppressWarnings("unchecked")
                 public Object evaluate(List list) throws XPathFunctionException {
                     if (exchange != null && !list.isEmpty()) {
                         Object value = list.get(0);
@@ -483,7 +481,6 @@ public class XPathBuilder implements Exp
     public XPathFunction getOutBodyFunction() {
         if (outBodyFunction == null) {
             outBodyFunction = new XPathFunction() {
-                @SuppressWarnings("unchecked")
                 public Object evaluate(List list) throws XPathFunctionException {
                     if (exchange.get() != null && exchange.get().hasOut()) {
                         return exchange.get().getOut().getBody();
@@ -501,8 +498,7 @@ public class XPathBuilder implements Exp
 
     public XPathFunction getOutHeaderFunction() {
         if (outHeaderFunction == null) {
-            outHeaderFunction = new XPathFunction() {
-                @SuppressWarnings("unchecked")
+            outHeaderFunction = new XPathFunction() {                
                 public Object evaluate(List list) throws XPathFunctionException {
                     if (exchange.get() != null && !list.isEmpty()) {
                         Object value = list.get(0);

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/component/bean/BeanInfo.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/component/bean/BeanInfo.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/component/bean/BeanInfo.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/component/bean/BeanInfo.java Mon Apr 26 06:05:33 2010
@@ -404,8 +404,7 @@ public class BeanInfo {
         // not possible to determine
         return null;
     }
-
-    @SuppressWarnings("unchecked")
+    
     private MethodInfo chooseMethodWithMatchingBody(Exchange exchange, Collection<MethodInfo> operationList)
         throws AmbiguousMethodCallException {
         // lets see if we can find a method who's body param type matches the message body
@@ -450,7 +449,6 @@ public class BeanInfo {
         return null;
     }
 
-    @SuppressWarnings("unchecked")
     private MethodInfo chooseBestPossibleMethodInfo(Exchange exchange, Collection<MethodInfo> operationList, Object body,
                                                     List<MethodInfo> possibles, List<MethodInfo> possiblesWithException)
         throws AmbiguousMethodCallException {

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/component/bean/MethodInfoCache.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/component/bean/MethodInfoCache.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/component/bean/MethodInfoCache.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/component/bean/MethodInfoCache.java Mon Apr 26 06:05:33 2010
@@ -38,7 +38,6 @@ public class MethodInfoCache {
         this(camelContext, 1000, 10000);
     }
 
-    @SuppressWarnings("unchecked")
     public MethodInfoCache(CamelContext camelContext, int classCacheSize, int methodCacheSize) {
         this(camelContext, createClassCache(classCacheSize), createMethodCache(methodCacheSize));
     }

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/component/bean/ProxyHelper.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/component/bean/ProxyHelper.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/component/bean/ProxyHelper.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/component/bean/ProxyHelper.java Mon Apr 26 06:05:33 2010
@@ -37,7 +37,6 @@ public final class ProxyHelper {
     /**
      * Creates a Proxy which sends PojoExchange to the endpoint.
      */
-    @SuppressWarnings("unchecked")
     public static Object createProxyObject(Endpoint endpoint, Producer producer, ClassLoader classLoader, Class[] interfaces, MethodInfoCache methodCache) {
         return Proxy.newProxyInstance(classLoader, interfaces.clone(), new CamelInvocationHandler(endpoint, producer, methodCache));
     }
@@ -63,7 +62,6 @@ public final class ProxyHelper {
     /**
      * Creates a Proxy which sends PojoExchange to the endpoint.
      */
-    @SuppressWarnings("unchecked")
     public static <T> T createProxy(Endpoint endpoint, Class<T>... interfaceClasses) throws Exception {
         return (T) createProxy(endpoint, getClassLoader(interfaceClasses), interfaceClasses);
     }

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java Mon Apr 26 06:05:33 2010
@@ -285,7 +285,6 @@ public abstract class GenericFileConsume
      * @param isDirectory whether the file is a directory or a file
      * @return <tt>true</tt> to include the file, <tt>false</tt> to skip it
      */
-    @SuppressWarnings("unchecked")
     protected boolean isValidFile(GenericFile<T> file, boolean isDirectory) {
         if (!isMatched(file, isDirectory)) {
             if (log.isTraceEnabled()) {

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileProducer.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileProducer.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileProducer.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileProducer.java Mon Apr 26 06:05:33 2010
@@ -51,7 +51,6 @@ public class GenericFileProducer<T> exte
         return FileUtil.normalizePath(name);
     }
 
-    @SuppressWarnings("unchecked")
     public void process(Exchange exchange) throws Exception {
         Exchange fileExchange = endpoint.createExchange(exchange);
         processExchange(fileExchange);

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategy.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategy.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategy.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategy.java Mon Apr 26 06:05:33 2010
@@ -47,7 +47,6 @@ public class MarkerFileExclusiveReadLock
         deleteLockFiles(file, endpoint.isRecursive());
     }
 
-    @SuppressWarnings("unchecked")
     public boolean acquireExclusiveReadLock(GenericFileOperations<File> operations,
                                             GenericFile<File> file, Exchange exchange) throws Exception {
 

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/component/mock/MockEndpoint.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/component/mock/MockEndpoint.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/component/mock/MockEndpoint.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/component/mock/MockEndpoint.java Mon Apr 26 06:05:33 2010
@@ -836,7 +836,6 @@ public class MockEndpoint extends Defaul
         }
     }
 
-    @SuppressWarnings("unchecked")
     protected void performAssertions(Exchange exchange) throws Exception {
         Message in = exchange.getIn();
         Object actualBody = in.getBody();

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/converter/ObjectConverter.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/ObjectConverter.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/converter/ObjectConverter.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/converter/ObjectConverter.java Mon Apr 26 06:05:33 2010
@@ -65,7 +65,6 @@ public final class ObjectConverter {
     /**
      * Creates an iterator over the value
      */
-    @SuppressWarnings("unchecked")
     @Converter
     public static Iterator iterator(Object value) {
         return ObjectHelper.createIterator(value);

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/converter/jaxp/DomConverter.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/jaxp/DomConverter.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/converter/jaxp/DomConverter.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/converter/jaxp/DomConverter.java Mon Apr 26 06:05:33 2010
@@ -22,14 +22,15 @@ import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.List;
 
-import org.apache.camel.converter.ObjectConverter;
-import org.apache.camel.util.ObjectHelper;
 import org.w3c.dom.Attr;
 import org.w3c.dom.Element;
 import org.w3c.dom.Node;
 import org.w3c.dom.NodeList;
 import org.w3c.dom.Text;
+
 import org.apache.camel.Converter;
+import org.apache.camel.util.ObjectHelper;
+
 
 /**
  * Converts from some DOM types to Java types
@@ -66,6 +67,7 @@ public final class DomConverter {
         return Long.valueOf(s);
     }
 
+    @SuppressWarnings("unchecked")
     @Converter
     public static List toList(NodeList nodeList) {
         List answer = new ArrayList();

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ConsumerCache.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ConsumerCache.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ConsumerCache.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ConsumerCache.java Mon Apr 26 06:05:33 2010
@@ -109,6 +109,10 @@ public class ConsumerCache extends Servi
         PollingConsumer consumer = getConsumer(endpoint);
         return consumer.receiveNoWait();
     }
+    
+    public CamelContext getCamelContext() {
+        return camelContext;
+    }
 
     protected void doStart() throws Exception {
         ServiceHelper.startServices(consumers);

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultRouteStartupOrder.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultRouteStartupOrder.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultRouteStartupOrder.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultRouteStartupOrder.java Mon Apr 26 06:05:33 2010
@@ -33,7 +33,6 @@ public class DefaultRouteStartupOrder im
 
     private final int startupOrder;
     private final Route route;
-    private final List<Consumer> inputs = new ArrayList<Consumer>();
     private final RouteService routeService;
 
     public DefaultRouteStartupOrder(int startupOrder, Route route, RouteService routeService) {

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ProducerCache.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ProducerCache.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ProducerCache.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ProducerCache.java Mon Apr 26 06:05:33 2010
@@ -65,6 +65,10 @@ public class ProducerCache extends Servi
         this.pool = producerServicePool;
         this.producers = cache;
     }
+    
+    public CamelContext getCamelContext() {
+        return camelContext;
+    }
 
     /**
      * Gets the source which uses this cache

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/AnnotationTypeConverterLoader.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/AnnotationTypeConverterLoader.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/AnnotationTypeConverterLoader.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/AnnotationTypeConverterLoader.java Mon Apr 26 06:05:33 2010
@@ -58,7 +58,6 @@ public class AnnotationTypeConverterLoad
         this.resolver = resolver;
     }
 
-    @SuppressWarnings("unchecked")
     public void load(TypeConverterRegistry registry) throws Exception {
         String[] packageNames = findPackageNames();
         Set<Class<?>> classes = resolver.findAnnotated(Converter.class, packageNames);

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/impl/scan/InvertingPackageScanFilter.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/scan/InvertingPackageScanFilter.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/impl/scan/InvertingPackageScanFilter.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/impl/scan/InvertingPackageScanFilter.java Mon Apr 26 06:05:33 2010
@@ -23,7 +23,7 @@ import org.apache.camel.spi.PackageScanF
  * subfilter would match and return <tt>true</tt> this filter will invert that
  * match and return <tt>false</tt>.
  */
-@SuppressWarnings("unchecked")
+
 public class InvertingPackageScanFilter implements PackageScanFilter {
 
     private PackageScanFilter filter;

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/management/DefaultManagementLifecycleStrategy.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/management/DefaultManagementLifecycleStrategy.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/management/DefaultManagementLifecycleStrategy.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/management/DefaultManagementLifecycleStrategy.java Mon Apr 26 06:05:33 2010
@@ -185,7 +185,6 @@ public class DefaultManagementLifecycleS
      *
      * @param endpoint the Endpoint attempted to be added
      */
-    @SuppressWarnings("unchecked")
     public void onEndpointAdd(Endpoint endpoint) {
         // the agent hasn't been started
         if (!initialized) {

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/AggregateDefinition.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/AggregateDefinition.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/AggregateDefinition.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/AggregateDefinition.java Mon Apr 26 06:05:33 2010
@@ -142,7 +142,6 @@ public class AggregateDefinition extends
         return clause;
     }
 
-    @SuppressWarnings("unchecked")
     protected AggregateProcessor createAggregator(RouteContext routeContext) throws Exception {
         Processor processor = this.createChildProcessor(routeContext, true);
         // wrap the aggregated route in a unit of work processor
@@ -595,14 +594,12 @@ public class AggregateDefinition extends
         setParallelProcessing(true);
         return this;
     }
-
-    @SuppressWarnings("unchecked")
+    
     public AggregateDefinition executorService(ExecutorService executorService) {
         setExecutorService(executorService);
         return this;
     }
 
-    @SuppressWarnings("unchecked")
     public AggregateDefinition executorServiceRef(String executorServiceRef) {
         setExecutorServiceRef(executorServiceRef);
         return this;

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/BeanDefinition.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/BeanDefinition.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/BeanDefinition.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/BeanDefinition.java Mon Apr 26 06:05:33 2010
@@ -143,7 +143,6 @@ public class BeanDefinition extends Outp
     }
 
     @Override
-    @SuppressWarnings("unchecked")
     public Processor createProcessor(RouteContext routeContext) {
         BeanProcessor answer;
         if (ObjectHelper.isNotEmpty(ref)) {

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/DataFormatDefinition.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/DataFormatDefinition.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/DataFormatDefinition.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/DataFormatDefinition.java Mon Apr 26 06:05:33 2010
@@ -92,7 +92,6 @@ public class DataFormatDefinition extend
     /**
      * Factory method to create the data format instance
      */
-    @SuppressWarnings("unchecked")
     protected DataFormat createDataFormat(RouteContext routeContext) {
         if (dataFormatName != null) {
             return routeContext.getCamelContext().resolveDataFormat(dataFormatName);

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/MulticastDefinition.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/MulticastDefinition.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/MulticastDefinition.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/MulticastDefinition.java Mon Apr 26 06:05:33 2010
@@ -126,14 +126,12 @@ public class MulticastDefinition extends
         setStopOnException(true);
         return this;
     }
-       
-    @SuppressWarnings("unchecked")
+    
     public MulticastDefinition executorService(ExecutorService executorService) {
         setExecutorService(executorService);
         return this;
     }
-
-    @SuppressWarnings("unchecked")
+    
     public MulticastDefinition executorServiceRef(String executorServiceRef) {
         setExecutorServiceRef(executorServiceRef);
         return this;

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/OnCompletionDefinition.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/OnCompletionDefinition.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/OnCompletionDefinition.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/OnCompletionDefinition.java Mon Apr 26 06:05:33 2010
@@ -185,14 +185,12 @@ public class OnCompletionDefinition exte
         onWhen.setExpression(clause);
         return clause;
     }
-
-    @SuppressWarnings("unchecked")
+    
     public OnCompletionDefinition executorService(ExecutorService executorService) {
         setExecutorService(executorService);
         return this;
     }
 
-    @SuppressWarnings("unchecked")
     public OnCompletionDefinition executorServiceRef(String executorServiceRef) {
         setExecutorServiceRef(executorServiceRef);
         return this;

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java Mon Apr 26 06:05:33 2010
@@ -984,7 +984,6 @@ public abstract class ProcessorDefinitio
      *
      * @return the builder
      */
-    @SuppressWarnings("unchecked")
     public ProcessorDefinition end() {
         // when using doTry .. doCatch .. doFinally we should always
         // end the try definition to avoid having to use 2 x end() in the route
@@ -1204,7 +1203,6 @@ public abstract class ProcessorDefinitio
      * @param recipients expression to decide the destinations
      * @return the builder
      */
-    @SuppressWarnings("unchecked")
     public RecipientListDefinition<Type> recipientList(Expression recipients) {
         RecipientListDefinition<Type> answer = new RecipientListDefinition<Type>(recipients);
         addOutput(answer);
@@ -1219,7 +1217,6 @@ public abstract class ProcessorDefinitio
      * @param delimiter  a custom delimiter to use
      * @return the builder
      */
-    @SuppressWarnings("unchecked")
     public RecipientListDefinition<Type> recipientList(Expression recipients, String delimiter) {
         RecipientListDefinition<Type> answer = new RecipientListDefinition<Type>(recipients);
         answer.setDelimiter(delimiter);
@@ -1624,7 +1621,6 @@ public abstract class ProcessorDefinitio
      * @return the builder
      * @see #markRollbackOnly()
      */
-    @SuppressWarnings("unchecked")
     public Type rollback() {
         return rollback(null);
     }
@@ -1715,7 +1711,6 @@ public abstract class ProcessorDefinitio
      * @param body expression that creates the body to send
      * @return the builder
      */
-    @SuppressWarnings("unchecked")
     public Type wireTap(String uri, Expression body) {
         return wireTap(uri, true, body);
     }
@@ -2464,7 +2459,6 @@ public abstract class ProcessorDefinitio
      *
      * @return the builder
      */
-    @SuppressWarnings("unchecked")
     public OnCompletionDefinition onCompletion() {
         OnCompletionDefinition answer = new OnCompletionDefinition();
         // we must remove all existing on completion definition (as they are global)

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/RecipientListDefinition.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RecipientListDefinition.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/RecipientListDefinition.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/RecipientListDefinition.java Mon Apr 26 06:05:33 2010
@@ -183,13 +183,11 @@ public class RecipientListDefinition<Typ
         return this;
     }
 
-    @SuppressWarnings("unchecked")
     public RecipientListDefinition<Type> executorService(ExecutorService executorService) {
         setExecutorService(executorService);
         return this;
     }
 
-    @SuppressWarnings("unchecked")
     public RecipientListDefinition<Type> executorServiceRef(String executorServiceRef) {
         setExecutorServiceRef(executorServiceRef);
         return this;

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/RouteDefinition.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RouteDefinition.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/RouteDefinition.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/RouteDefinition.java Mon Apr 26 06:05:33 2010
@@ -610,6 +610,7 @@ public class RouteDefinition extends Pro
 
     // Implementation methods
     // -------------------------------------------------------------------------
+    @SuppressWarnings("unchecked")
     protected RouteContext addRoutes(Collection<Route> routes, FromDefinition fromType) throws Exception {
         RouteContext routeContext = new DefaultRouteContext(getCamelContext(), this, fromType, routes);
 

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/SamplingDefinition.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/SamplingDefinition.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/SamplingDefinition.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/SamplingDefinition.java Mon Apr 26 06:05:33 2010
@@ -35,7 +35,6 @@ import org.apache.camel.spi.RouteContext
  */
 @XmlRootElement(name = "sample")
 @XmlAccessorType(XmlAccessType.FIELD)
-@SuppressWarnings("unchecked")
 public class SamplingDefinition extends OutputDefinition<ProcessorDefinition> {
 
     // use Long to let it be optional in JAXB so when using XML the default is 1 second

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/SplitDefinition.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/SplitDefinition.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/SplitDefinition.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/SplitDefinition.java Mon Apr 26 06:05:33 2010
@@ -177,14 +177,12 @@ public class SplitDefinition extends Exp
         setStopOnException(true);
         return this;
     }
-
-    @SuppressWarnings("unchecked")
+   
     public SplitDefinition executorService(ExecutorService executorService) {
         setExecutorService(executorService);
         return this;
     }
     
-    @SuppressWarnings("unchecked")
     public SplitDefinition executorServiceRef(String executorServiceRef) {
         setExecutorServiceRef(executorServiceRef);
         return this;

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/ThreadsDefinition.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ThreadsDefinition.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/ThreadsDefinition.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/ThreadsDefinition.java Mon Apr 26 06:05:33 2010
@@ -120,13 +120,11 @@ public class ThreadsDefinition extends O
         return "Threads[" + getOutputs() + "]";
     }
 
-    @SuppressWarnings("unchecked")
     public ThreadsDefinition executorService(ExecutorService executorService) {
         setExecutorService(executorService);
         return this;
     }
 
-    @SuppressWarnings("unchecked")
     public ThreadsDefinition executorServiceRef(String executorServiceRef) {
         setExecutorServiceRef(executorServiceRef);
         return this;

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/ToDefinition.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ToDefinition.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/ToDefinition.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/ToDefinition.java Mon Apr 26 06:05:33 2010
@@ -180,13 +180,11 @@ public class ToDefinition extends SendDe
         return this;
     }
 
-    @SuppressWarnings("unchecked")
     public ToDefinition executorService(ExecutorService executorService) {
         setExecutorService(executorService);
         return this;
     }
 
-    @SuppressWarnings("unchecked")
     public ToDefinition executorServiceRef(String executorServiceRef) {
         setExecutorServiceRef(executorServiceRef);
         return this;

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/MethodCallExpression.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/MethodCallExpression.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/MethodCallExpression.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/MethodCallExpression.java Mon Apr 26 06:05:33 2010
@@ -94,8 +94,7 @@ public class MethodCallExpression extend
     public void setMethod(String method) {
         this.method = method;
     }
-
-    @SuppressWarnings("unchecked")
+    
     @Override
     public Expression createExpression(CamelContext camelContext) {
         if (beanType != null) {            
@@ -107,7 +106,6 @@ public class MethodCallExpression extend
         }
     }
 
-    @SuppressWarnings("unchecked")
     @Override
     public Predicate createPredicate(CamelContext camelContext) {
         if (beanType != null) {

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/processor/BatchProcessor.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/BatchProcessor.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/processor/BatchProcessor.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/processor/BatchProcessor.java Mon Apr 26 06:05:33 2010
@@ -406,8 +406,7 @@ public class BatchProcessor extends Serv
                 queueLock.unlock();
             }
         }
-
-        @SuppressWarnings("unchecked")
+        
         private void sendExchanges() throws Exception {
             Iterator<Exchange> iter = collection.iterator();
             while (iter.hasNext()) {

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/processor/ConvertBodyProcessor.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/ConvertBodyProcessor.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/processor/ConvertBodyProcessor.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/processor/ConvertBodyProcessor.java Mon Apr 26 06:05:33 2010
@@ -46,7 +46,6 @@ public class ConvertBodyProcessor implem
         return "convertBodyTo[" + type.getCanonicalName() + "]";
     }
 
-    @SuppressWarnings("unchecked")
     public void process(Exchange exchange) throws Exception {
         Message in = exchange.getIn();
         if (charset != null) {

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/processor/MulticastProcessor.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/MulticastProcessor.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/processor/MulticastProcessor.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/processor/MulticastProcessor.java Mon Apr 26 06:05:33 2010
@@ -137,6 +137,10 @@ public class MulticastProcessor extends 
     public String getTraceLabel() {
         return "multicast";
     }
+    
+    public CamelContext getCamelContext() {
+        return camelContext;
+    }
 
     public void process(Exchange exchange) throws Exception {
         final AtomicExchange result = new AtomicExchange();

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/processor/OnCompletionProcessor.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/OnCompletionProcessor.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/processor/OnCompletionProcessor.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/processor/OnCompletionProcessor.java Mon Apr 26 06:05:33 2010
@@ -68,6 +68,10 @@ public class OnCompletionProcessor exten
     protected void doStop() throws Exception {
         ServiceHelper.stopService(processor);
     }
+    
+    public CamelContext getCamelContext() {
+        return camelContext;
+    }
 
     public void process(Exchange exchange) throws Exception {
         if (processor == null) {

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/processor/UnitOfWorkProcessor.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/UnitOfWorkProcessor.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/processor/UnitOfWorkProcessor.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/processor/UnitOfWorkProcessor.java Mon Apr 26 06:05:33 2010
@@ -47,6 +47,10 @@ public final class UnitOfWorkProcessor e
     public String toString() {
         return "UnitOfWork(" + processor + ")";
     }
+    
+    public RouteContext getRouteContext() {
+        return routeContext;
+    }
 
     @Override
     protected void processNext(Exchange exchange) throws Exception {

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/processor/idempotent/IdempotentConsumer.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/idempotent/IdempotentConsumer.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/processor/idempotent/IdempotentConsumer.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/processor/idempotent/IdempotentConsumer.java Mon Apr 26 06:05:33 2010
@@ -55,7 +55,6 @@ public class IdempotentConsumer extends 
         return "IdempotentConsumer[" + messageIdExpression + " -> " + processor + "]";
     }
 
-    @SuppressWarnings("unchecked")
     public void process(Exchange exchange) throws Exception {
         final String messageId = messageIdExpression.evaluate(exchange, String.class);
         if (messageId == null) {

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/processor/idempotent/IdempotentOnCompletion.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/idempotent/IdempotentOnCompletion.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/processor/idempotent/IdempotentOnCompletion.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/processor/idempotent/IdempotentOnCompletion.java Mon Apr 26 06:05:33 2010
@@ -64,7 +64,6 @@ public class IdempotentOnCompletion impl
      * @param exchange the exchange
      * @param messageId the message ID of this exchange
      */
-    @SuppressWarnings("unchecked")
     protected void onCompletedMessage(Exchange exchange, String messageId) {
         if (!eager) {
             // if not eager we should add the key when its complete
@@ -80,7 +79,6 @@ public class IdempotentOnCompletion impl
      * @param exchange the exchange
      * @param messageId the message ID of this exchange
      */
-    @SuppressWarnings("unchecked")
     protected void onFailedMessage(Exchange exchange, String messageId) {
         idempotentRepository.remove(messageId);
         if (LOG.isDebugEnabled()) {

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/processor/resequencer/DefaultExchangeComparator.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/resequencer/DefaultExchangeComparator.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/processor/resequencer/DefaultExchangeComparator.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/processor/resequencer/DefaultExchangeComparator.java Mon Apr 26 06:05:33 2010
@@ -45,7 +45,6 @@ public class DefaultExchangeComparator i
         this.expression = expression;
     }
 
-    @SuppressWarnings("unchecked")
     public void setExpressions(List<Expression> expressions) {
         if (expressions.isEmpty()) {
             throw new IllegalArgumentException("Expression required to resolve sequence number");

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java Mon Apr 26 06:05:33 2010
@@ -404,7 +404,6 @@ public final class ObjectHelper {
     /**
      * Returns true if the collection contains the specified value
      */
-    @SuppressWarnings("unchecked")
     public static boolean contains(Object collectionOrArray, Object value) {
         if (collectionOrArray instanceof Collection) {
             Collection collection = (Collection)collectionOrArray;

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/util/URISupport.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/util/URISupport.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/util/URISupport.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/util/URISupport.java Mon Apr 26 06:05:33 2010
@@ -40,7 +40,6 @@ public final class URISupport {
         // Helper class
     }
 
-    @SuppressWarnings("unchecked")
     public static Map<String, Object> parseQuery(String uri) throws URISyntaxException {
         // must check for trailing & as the uri.split("&") will ignore those
         if (uri != null && uri.endsWith("&")) {

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/util/concurrent/SubmitOrderedCompletionService.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/util/concurrent/SubmitOrderedCompletionService.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/util/concurrent/SubmitOrderedCompletionService.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/util/concurrent/SubmitOrderedCompletionService.java Mon Apr 26 06:05:33 2010
@@ -65,15 +65,13 @@ public class SubmitOrderedCompletionServ
             // if the answer is 0 then this task is ready to be taken
             return id - index.get();
         }
-
-        @SuppressWarnings("unchecked")
+        
         public int compareTo(Delayed o) {
             SubmitOrderFutureTask other = (SubmitOrderFutureTask) o;
             return (int) (this.id - other.id);
         }
 
         @Override
-        @SuppressWarnings("unchecked")
         protected void done() {
             // when we are done add to the completion queue
             completionQueue.add(this);
@@ -94,7 +92,6 @@ public class SubmitOrderedCompletionServ
         return (Future<V>) f;
     }
 
-    @SuppressWarnings("unchecked")
     public Future<V> submit(Runnable task, Object result) {
         if (task == null) {
             throw new IllegalArgumentException("Task must be provided");

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/util/jndi/JndiContext.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/util/jndi/JndiContext.java?rev=937935&r1=937934&r2=937935&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/util/jndi/JndiContext.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/util/jndi/JndiContext.java Mon Apr 26 06:05:33 2010
@@ -189,7 +189,6 @@ public class JndiContext implements Cont
         }
     }
 
-    @SuppressWarnings("unchecked")
     public Object addToEnvironment(String propName, Object propVal) throws NamingException {
         return environment.put(propName, propVal);
     }



Mime
View raw message