You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2010/04/28 05:39:47 UTC
svn commit: r938769 - in
/camel/trunk/camel-core/src/main/java/org/apache/camel:
processor/Enricher.java util/ObjectHelper.java
Author: ningjiang
Date: Wed Apr 28 03:39:46 2010
New Revision: 938769
URL: http://svn.apache.org/viewvc?rev=938769&view=rev
Log:
Clean up the @SuppressWarnings of camel-core
Modified:
camel/trunk/camel-core/src/main/java/org/apache/camel/processor/Enricher.java
camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/processor/Enricher.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/Enricher.java?rev=938769&r1=938768&r2=938769&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/processor/Enricher.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/processor/Enricher.java Wed Apr 28 03:39:46 2010
@@ -24,10 +24,9 @@ import org.apache.camel.impl.DefaultExch
import org.apache.camel.impl.ServiceSupport;
import org.apache.camel.processor.aggregate.AggregationStrategy;
import org.apache.camel.util.ExchangeHelper;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import static org.apache.camel.util.ExchangeHelper.copyResultsPreservePattern;
+
/**
* A content enricher that enriches input data by first obtaining additional
* data from a <i>resource</i> represented by an endpoint <code>producer</code>
@@ -42,7 +41,6 @@ import static org.apache.camel.util.Exch
*/
public class Enricher extends ServiceSupport implements Processor {
- private static final transient Log LOG = LogFactory.getLog(Enricher.class);
private AggregationStrategy aggregationStrategy;
private Producer producer;
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=938769&r1=938768&r2=938769&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 Wed Apr 28 03:39:46 2010
@@ -526,7 +526,7 @@ public final class ObjectHelper {
* @return <tt>true</tt> if the first element is a boolean and its value
* is true or if the list is non empty
*/
- public static boolean matches(List<Object> list) {
+ public static boolean matches(List list) {
if (!list.isEmpty()) {
Object value = list.get(0);
if (value instanceof Boolean) {