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 2008/03/27 02:09:14 UTC
svn commit: r641674 - in /activemq/camel/trunk/components/camel-ognl/src:
main/java/org/apache/camel/language/ognl/OGNL.java
main/java/org/apache/camel/language/ognl/OgnlExpression.java
test/java/org/apache/camel/language/ognl/OgnlTest.java
Author: ningjiang
Date: Wed Mar 26 18:09:13 2008
New Revision: 641674
URL: http://svn.apache.org/viewvc?rev=641674&view=rev
Log:
Fixed the camel-ognl CS erros
Modified:
activemq/camel/trunk/components/camel-ognl/src/main/java/org/apache/camel/language/ognl/OGNL.java
activemq/camel/trunk/components/camel-ognl/src/main/java/org/apache/camel/language/ognl/OgnlExpression.java
activemq/camel/trunk/components/camel-ognl/src/test/java/org/apache/camel/language/ognl/OgnlTest.java
Modified: activemq/camel/trunk/components/camel-ognl/src/main/java/org/apache/camel/language/ognl/OGNL.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-ognl/src/main/java/org/apache/camel/language/ognl/OGNL.java?rev=641674&r1=641673&r2=641674&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-ognl/src/main/java/org/apache/camel/language/ognl/OGNL.java (original)
+++ activemq/camel/trunk/components/camel-ognl/src/main/java/org/apache/camel/language/ognl/OGNL.java Wed Mar 26 18:09:13 2008
@@ -1,5 +1,4 @@
/**
- *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
@@ -7,7 +6,7 @@
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -17,13 +16,13 @@
*/
package org.apache.camel.language.ognl;
-import org.apache.camel.language.LanguageAnnotation;
-
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
+import org.apache.camel.language.LanguageAnnotation;
+
/**
* An annotation for injection of <a href="http://www.ognl.org/">OGNL</a> expressions
* into method parameters, fields or properties
@@ -34,5 +33,5 @@
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
@LanguageAnnotation(language = "ognl")
public @interface OGNL {
- public abstract String value();
+ String value();
}
Modified: activemq/camel/trunk/components/camel-ognl/src/main/java/org/apache/camel/language/ognl/OgnlExpression.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-ognl/src/main/java/org/apache/camel/language/ognl/OgnlExpression.java?rev=641674&r1=641673&r2=641674&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-ognl/src/main/java/org/apache/camel/language/ognl/OgnlExpression.java (original)
+++ activemq/camel/trunk/components/camel-ognl/src/main/java/org/apache/camel/language/ognl/OgnlExpression.java Wed Mar 26 18:09:13 2008
@@ -25,9 +25,6 @@
import org.apache.camel.language.ExpressionEvaluationException;
import org.apache.camel.language.IllegalSyntaxException;
-import java.util.HashMap;
-import java.util.Map;
-
/**
* An <a href="http://www.ognl.org/">OGNL</a> {@link Expression}
*
Modified: activemq/camel/trunk/components/camel-ognl/src/test/java/org/apache/camel/language/ognl/OgnlTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-ognl/src/test/java/org/apache/camel/language/ognl/OgnlTest.java?rev=641674&r1=641673&r2=641674&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-ognl/src/test/java/org/apache/camel/language/ognl/OgnlTest.java (original)
+++ activemq/camel/trunk/components/camel-ognl/src/test/java/org/apache/camel/language/ognl/OgnlTest.java Wed Mar 26 18:09:13 2008
@@ -21,7 +21,7 @@
/**
* @version $Revision$
*/
-public class OgnlTest extends LanguageTestSupport {
+public class OgnlTest extends LanguageTestSupport {
public void testOgnlExpressions() throws Exception {
assertExpression("exchange", exchange);
assertExpression("exchange.getIn().body", "<hello id='m123'>world!</hello>");
@@ -31,15 +31,15 @@
assertExpression("getIn().headers.foo", "abc");
assertExpression("request.headers.foo", "abc");
}
-
+
public void testGetOutFalseKeepsNullOutMessage() throws Exception {
assertExpression("exchange.getOut(false)", null);
assertNull(exchange.getOut(false));
}
-
+
public void testResponseCreatesOutMessage() throws Exception {
- assertExpression("response.body", null);
- assertNotNull(exchange.getOut(false));
+ assertExpression("response.body", null);
+ assertNotNull(exchange.getOut(false));
}
protected String getLanguageName() {