activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r520523 - in /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel: Exchange.java Message.java NoSuchEndpointException.java builder/BuilderSupport.java builder/ExpressionBuilder.java builder/RouteBuilder.java
Date Tue, 20 Mar 2007 19:01:23 GMT
Author: chirino
Date: Tue Mar 20 12:01:21 2007
New Revision: 520523

URL: http://svn.apache.org/viewvc?view=rev&rev=520523
Log:
Eliminated some warnings. 

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Exchange.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Message.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/NoSuchEndpointException.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/BuilderSupport.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ExpressionBuilder.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/RouteBuilder.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Exchange.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Exchange.java?view=diff&rev=520523&r1=520522&r2=520523
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Exchange.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Exchange.java Tue Mar 20
12:01:21 2007
@@ -16,7 +16,6 @@
  */
 package org.apache.camel;
 
-import java.util.Map;
 
 /**
  * Represents the base exchange interface providing access to the request, response and fault
{@link Message} instances.

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Message.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Message.java?view=diff&rev=520523&r1=520522&r2=520523
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Message.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Message.java Tue Mar 20
12:01:21 2007
@@ -17,8 +17,6 @@
  */
 package org.apache.camel;
 
-import java.util.Map;
-
 /**
  * Represents an inbound or outbound message as part of an {@link Exchange}
  *
@@ -34,14 +32,14 @@
     /**
      * Returns the body of the message as a POJO
      *
-     * @returns the body of the message
+     * @return the body of the message
      */
     public Object getBody();
 
     /**
      * Returns the body as the specified type
      *
-     * @param type the type that the body i
+     * @param type the type that the body
      * @return the body of the message as the specified type
      */
     public <T> T getBody(Class<T> type);

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/NoSuchEndpointException.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/NoSuchEndpointException.java?view=diff&rev=520523&r1=520522&r2=520523
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/NoSuchEndpointException.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/NoSuchEndpointException.java
Tue Mar 20 12:01:21 2007
@@ -26,7 +26,8 @@
  * @version $Revision$
  */
 public class NoSuchEndpointException extends RuntimeCamelException {
-    private final String uri;
+	private static final long serialVersionUID = -8721487431101572630L;
+	private final String uri;
 
     public NoSuchEndpointException(String uri) {
         super("No endpoint could be found for: " + uri);

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/BuilderSupport.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/BuilderSupport.java?view=diff&rev=520523&r1=520522&r2=520523
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/BuilderSupport.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/BuilderSupport.java
Tue Mar 20 12:01:21 2007
@@ -20,7 +20,7 @@
 import org.apache.camel.Exchange;
 
 /**
- * Base class for implementation inheritence
+ * Base class for implementation inheritance
  *
  * @version $Revision: $
  */
@@ -45,7 +45,7 @@
     /**
      * Returns a predicate and value builder for the inbound message body as a specific type
      */
-    public ValueBuilder<E> bodyAs(Class type) {
+    public <T> ValueBuilder<E> bodyAs(Class<T> type) {
         Expression<E> expression = ExpressionBuilder.bodyExpression(type);
         return new ValueBuilder<E>(expression);
     }
@@ -61,7 +61,7 @@
     /**
      * Returns a predicate and value builder for the outbound message body as a specific
type
      */
-    public ValueBuilder<E> outBody(Class type) {
+    public <T> ValueBuilder<E> outBody(Class<T> type) {
         Expression<E> expression = ExpressionBuilder.bodyExpression(type);
         return new ValueBuilder<E>(expression);
     }

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ExpressionBuilder.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ExpressionBuilder.java?view=diff&rev=520523&r1=520522&r2=520523
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ExpressionBuilder.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ExpressionBuilder.java
Tue Mar 20 12:01:21 2007
@@ -90,7 +90,7 @@
     /**
      * Returns the expression for the exchanges inbound message body converted to the given
type
      */
-    public static <E extends Exchange> Expression<E> bodyExpression(final Class
type) {
+    public static <E extends Exchange, T> Expression<E> bodyExpression(final
Class<T> type) {
         return new Expression<E>() {
             public Object evaluate(E exchange) {
                 return exchange.getIn().getBody(type);

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/RouteBuilder.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/RouteBuilder.java?view=diff&rev=520523&r1=520522&r2=520523
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/RouteBuilder.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/RouteBuilder.java
Tue Mar 20 12:01:21 2007
@@ -47,7 +47,7 @@
     }
 
     /**
-     * Called on initialisation to to build the required destinationBuilders
+     * Called on initialization to to build the required destinationBuilders
      */
     public abstract void configure();
 



Mime
View raw message