camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r738911 - in /camel/trunk/components/camel-mina/src/main/java/org/apache/camel/component/mina: MinaComponent.java TextLineDelimiter.java
Date Thu, 29 Jan 2009 16:16:12 GMT
Author: davsclaus
Date: Thu Jan 29 16:16:12 2009
New Revision: 738911

URL: http://svn.apache.org/viewvc?rev=738911&view=rev
Log:
CAMEL-1305: Add missing DEFAULT textline delimiter to camel-mina and it should be used by
default.

Modified:
    camel/trunk/components/camel-mina/src/main/java/org/apache/camel/component/mina/MinaComponent.java
    camel/trunk/components/camel-mina/src/main/java/org/apache/camel/component/mina/TextLineDelimiter.java

Modified: camel/trunk/components/camel-mina/src/main/java/org/apache/camel/component/mina/MinaComponent.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-mina/src/main/java/org/apache/camel/component/mina/MinaComponent.java?rev=738911&r1=738910&r2=738911&view=diff
==============================================================================
--- camel/trunk/components/camel-mina/src/main/java/org/apache/camel/component/mina/MinaComponent.java
(original)
+++ camel/trunk/components/camel-mina/src/main/java/org/apache/camel/component/mina/MinaComponent.java
Thu Jan 29 16:16:12 2009
@@ -353,10 +353,12 @@
 
     private static LineDelimiter getLineDelimiterParameter(TextLineDelimiter delimiter) {
         if (delimiter == null) {
-            return LineDelimiter.AUTO;
+            return LineDelimiter.DEFAULT;
         }
 
         switch (delimiter) {
+        case DEFAULT:
+            return LineDelimiter.DEFAULT;
         case AUTO:
             return LineDelimiter.AUTO;
         case UNIX:

Modified: camel/trunk/components/camel-mina/src/main/java/org/apache/camel/component/mina/TextLineDelimiter.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-mina/src/main/java/org/apache/camel/component/mina/TextLineDelimiter.java?rev=738911&r1=738910&r2=738911&view=diff
==============================================================================
--- camel/trunk/components/camel-mina/src/main/java/org/apache/camel/component/mina/TextLineDelimiter.java
(original)
+++ camel/trunk/components/camel-mina/src/main/java/org/apache/camel/component/mina/TextLineDelimiter.java
Thu Jan 29 16:16:12 2009
@@ -20,5 +20,5 @@
  * Possible text line delmiters to be used with the textline codec.
  */
 public enum TextLineDelimiter {
-    AUTO, UNIX, WINDOWS, MAC
+    DEFAULT, AUTO, UNIX, WINDOWS, MAC
 }



Mime
View raw message