Author: ningjiang
Date: Tue Jul 22 06:15:08 2008
New Revision: 678754

URL: http://svn.apache.org/viewvc?rev=678754&view=rev
Log:
Fixed the CS errors

Modified:
    
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/log/LogComponent.java
    
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/log/LogFormatter.java
    
activemq/camel/trunk/components/camel-flatpack/src/main/java/org/apache/camel/component/flatpack/DataSetList.java
    
activemq/camel/trunk/components/camel-flatpack/src/main/java/org/apache/camel/component/flatpack/FlatpackDataFormat.java
    
activemq/camel/trunk/components/camel-flatpack/src/test/java/org/apache/camel/component/flatpack/DelimitedWithUnmarshalTest.java
    
activemq/camel/trunk/components/camel-flatpack/src/test/java/org/apache/camel/component/flatpack/FixedLengthWithUnmarshalTest.java
    
activemq/camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpProducer.java
    
activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpInvalidConfigurationTest.java

Modified: 
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/log/LogComponent.java
URL: 
http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/log/LogComponent.java?rev=678754&r1=678753&r2=678754&view=diff
==============================================================================
--- 
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/log/LogComponent.java
 (original)
+++ 
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/log/LogComponent.java
 Tue Jul 22 06:15:08 2008
@@ -20,18 +20,18 @@
 
 import org.apache.camel.Endpoint;
 import org.apache.camel.Exchange;
-import org.apache.camel.util.IntrospectionSupport;
 import org.apache.camel.converter.ObjectConverter;
 import org.apache.camel.impl.DefaultComponent;
 import org.apache.camel.impl.ProcessorEndpoint;
 import org.apache.camel.processor.Logger;
 import org.apache.camel.processor.LoggingLevel;
 import org.apache.camel.processor.ThroughputLogger;
+import org.apache.camel.util.IntrospectionSupport;
 
 /**
  * The <a href="http://activemq.apache.org/camel/log.html";>Log Component</a>
  * to log message exchanges to the underlying logging mechanism.
- * 
+ *
  * @version $Revision$
  */
 public class LogComponent extends DefaultComponent<Exchange> {

Modified: 
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/log/LogFormatter.java
URL: 
http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/log/LogFormatter.java?rev=678754&r1=678753&r2=678754&view=diff
==============================================================================
--- 
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/log/LogFormatter.java
 (original)
+++ 
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/log/LogFormatter.java
 Tue Jul 22 06:15:08 2008
@@ -16,9 +16,9 @@
  */
 package org.apache.camel.component.log;
 
-import org.apache.camel.processor.interceptor.ExchangeFormatter;
 import org.apache.camel.Exchange;
 import org.apache.camel.Message;
+import org.apache.camel.processor.interceptor.ExchangeFormatter;
 import org.apache.camel.util.ObjectHelper;
 
 /**
@@ -40,23 +40,33 @@
 
         StringBuilder sb = new StringBuilder("");
         if (showAll || showExchangeId) {
-            if (multiline) sb.append('\n');
+            if (multiline) {
+                sb.append('\n');
+            }
             sb.append(", Id:").append(exchange.getExchangeId());
         }
         if (showAll || showProperties) {
-            if (multiline) sb.append('\n');
+            if (multiline) {
+                sb.append('\n');
+            }
             sb.append(", Properties:").append(exchange.getProperties());
         }
         if (showAll || showHeaders) {
-            if (multiline) sb.append('\n');
+            if (multiline) {
+                sb.append('\n');
+            }
             sb.append(", Headers:").append(in.getHeaders());
         }
         if (showAll || showBodyType) {
-            if (multiline) sb.append('\n');
+            if (multiline) {
+                sb.append('\n');
+            }
             sb.append(", BodyType:").append(getBodyTypeAsString(in));
         }
         if (showAll || showBody) {
-            if (multiline) sb.append('\n');
+            if (multiline) {
+                sb.append('\n');
+            }
             sb.append(", Body:").append(getBodyAsString(in));
         }
 
@@ -64,19 +74,27 @@
         if (showAll || showOut) {
             if (out != null) {
                 if (showAll || showHeaders) {
-                    if (multiline) sb.append('\n');
+                    if (multiline) {
+                        sb.append('\n');
+                    }
                     sb.append(", OutHeaders:").append(out.getHeaders());
                 }
                 if (showAll || showBodyType) {
-                    if (multiline) sb.append('\n');
+                    if (multiline) {
+                        sb.append('\n');
+                    }
                     sb.append(", 
OutBodyType:").append(getBodyTypeAsString(out));
                 }
                 if (showAll || showBody) {
-                    if (multiline) sb.append('\n');
+                    if (multiline) {
+                        sb.append('\n');
+                    }
                     sb.append(", OutBody:").append(getBodyAsString(out));
                 }
             } else {
-                if (multiline) sb.append('\n');
+                if (multiline) {
+                    sb.append('\n');
+                }
                 sb.append(", Out: null");
             }
         }

Modified: 
activemq/camel/trunk/components/camel-flatpack/src/main/java/org/apache/camel/component/flatpack/DataSetList.java
URL: 
http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-flatpack/src/main/java/org/apache/camel/component/flatpack/DataSetList.java?rev=678754&r1=678753&r2=678754&view=diff
==============================================================================
--- 
activemq/camel/trunk/components/camel-flatpack/src/main/java/org/apache/camel/component/flatpack/DataSetList.java
 (original)
+++ 
activemq/camel/trunk/components/camel-flatpack/src/main/java/org/apache/camel/component/flatpack/DataSetList.java
 Tue Jul 22 06:15:08 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,11 +16,11 @@
  */
 package org.apache.camel.component.flatpack;
 
-import net.sf.flatpack.DataSet;
-
 import java.util.AbstractList;
 import java.util.Iterator;
 
+import net.sf.flatpack.DataSet;
+
 /**
  * @version $Revision: 1.1 $
  */
@@ -45,7 +44,7 @@
 
     public int size() {
         int answer = 0;
-        for (Iterator iter = iterator(); iter.hasNext(); ) {
+        for (Iterator iter = iterator(); iter.hasNext();) {
             iter.next();
             answer++;
         }

Modified: 
activemq/camel/trunk/components/camel-flatpack/src/main/java/org/apache/camel/component/flatpack/FlatpackDataFormat.java
URL: 
http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-flatpack/src/main/java/org/apache/camel/component/flatpack/FlatpackDataFormat.java?rev=678754&r1=678753&r2=678754&view=diff
==============================================================================
--- 
activemq/camel/trunk/components/camel-flatpack/src/main/java/org/apache/camel/component/flatpack/FlatpackDataFormat.java
 (original)
+++ 
activemq/camel/trunk/components/camel-flatpack/src/main/java/org/apache/camel/component/flatpack/FlatpackDataFormat.java
 Tue Jul 22 06:15:08 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,17 +16,21 @@
  */
 package org.apache.camel.component.flatpack;
 
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.OutputStream;
+import java.io.Reader;
+
+import net.sf.flatpack.DataSet;
 import net.sf.flatpack.DefaultParserFactory;
 import net.sf.flatpack.Parser;
 import net.sf.flatpack.ParserFactory;
-import net.sf.flatpack.DataSet;
 import org.apache.camel.Exchange;
 import org.apache.camel.spi.DataFormat;
 import org.apache.camel.util.ObjectHelper;
 import org.springframework.core.io.Resource;
 
-import java.io.*;
-
 /**
  * @version $Revision: 1.1 $
  */
@@ -36,7 +39,7 @@
     private char textQualifier = '"';
     private boolean ignoreFirstRecord = true;
     private Resource definition;
-    private boolean fixed = false;
+    private boolean fixed;
     private ParserFactory parserFactory = DefaultParserFactory.getInstance();
 
     public void marshal(Exchange exchange, Object graph, OutputStream stream) 
throws Exception {

Modified: 
activemq/camel/trunk/components/camel-flatpack/src/test/java/org/apache/camel/component/flatpack/DelimitedWithUnmarshalTest.java
URL: 
http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-flatpack/src/test/java/org/apache/camel/component/flatpack/DelimitedWithUnmarshalTest.java?rev=678754&r1=678753&r2=678754&view=diff
==============================================================================
--- 
activemq/camel/trunk/components/camel-flatpack/src/test/java/org/apache/camel/component/flatpack/DelimitedWithUnmarshalTest.java
 (original)
+++ 
activemq/camel/trunk/components/camel-flatpack/src/test/java/org/apache/camel/component/flatpack/DelimitedWithUnmarshalTest.java
 Tue Jul 22 06:15:08 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,6 +16,9 @@
  */
 package org.apache.camel.component.flatpack;
 
+import java.util.List;
+import java.util.Map;
+
 import org.apache.camel.EndpointInject;
 import org.apache.camel.Exchange;
 import org.apache.camel.Message;
@@ -27,9 +29,6 @@
 import org.springframework.test.context.ContextConfiguration;
 import 
org.springframework.test.context.junit38.AbstractJUnit38SpringContextTests;
 
-import java.util.List;
-import java.util.Map;
-
 /**
  * @version $Revision: 1.1 $
  */

Modified: 
activemq/camel/trunk/components/camel-flatpack/src/test/java/org/apache/camel/component/flatpack/FixedLengthWithUnmarshalTest.java
URL: 
http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-flatpack/src/test/java/org/apache/camel/component/flatpack/FixedLengthWithUnmarshalTest.java?rev=678754&r1=678753&r2=678754&view=diff
==============================================================================
--- 
activemq/camel/trunk/components/camel-flatpack/src/test/java/org/apache/camel/component/flatpack/FixedLengthWithUnmarshalTest.java
 (original)
+++ 
activemq/camel/trunk/components/camel-flatpack/src/test/java/org/apache/camel/component/flatpack/FixedLengthWithUnmarshalTest.java
 Tue Jul 22 06:15:08 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,6 +16,9 @@
  */
 package org.apache.camel.component.flatpack;
 
+import java.util.List;
+import java.util.Map;
+
 import org.apache.camel.EndpointInject;
 import org.apache.camel.Exchange;
 import org.apache.camel.Message;
@@ -27,9 +29,6 @@
 import org.springframework.test.context.ContextConfiguration;
 import 
org.springframework.test.context.junit38.AbstractJUnit38SpringContextTests;
 
-import java.util.List;
-import java.util.Map;
-
 /**
  * @version $Revision: 1.1 $
  */

Modified: 
activemq/camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpProducer.java
URL: 
http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpProducer.java?rev=678754&r1=678753&r2=678754&view=diff
==============================================================================
--- 
activemq/camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpProducer.java
 (original)
+++ 
activemq/camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpProducer.java
 Tue Jul 22 06:15:08 2008
@@ -26,7 +26,6 @@
 import org.apache.camel.Exchange;
 import org.apache.camel.Message;
 import org.apache.camel.Producer;
-import static org.apache.camel.component.http.HttpMethods.HTTP_METHOD;
 import org.apache.camel.component.http.helper.LoadingByteArrayOutputStream;
 import org.apache.camel.impl.DefaultProducer;
 import org.apache.commons.httpclient.Header;
@@ -37,6 +36,9 @@
 import org.apache.commons.httpclient.methods.StringRequestEntity;
 import org.apache.commons.io.IOUtils;
 
+import static org.apache.camel.component.http.HttpMethods.HTTP_METHOD;
+
+
 /**
  * @version $Revision$
  */

Modified: 
activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpInvalidConfigurationTest.java
URL: 
http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpInvalidConfigurationTest.java?rev=678754&r1=678753&r2=678754&view=diff
==============================================================================
--- 
activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpInvalidConfigurationTest.java
 (original)
+++ 
activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpInvalidConfigurationTest.java
 Tue Jul 22 06:15:08 2008
@@ -1,10 +1,27 @@
+/**
+ * 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.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (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
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.camel.component.http;
 
 import org.apache.camel.ContextTestSupport;
 import org.apache.camel.ResolveEndpointFailedException;
+import org.apache.camel.builder.RouteBuilder;
+
 import static org.apache.camel.component.http.HttpMethods.HTTP_METHOD;
 import static org.apache.camel.component.http.HttpMethods.POST;
-import org.apache.camel.builder.RouteBuilder;
 
 /**
  * Unit test of invalid configuraiton


Reply via email to