camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [6/6] camel git commit: CAMEL-8001 Fixed the CS error of camel-smpp
Date Fri, 05 Dec 2014 03:27:00 GMT
CAMEL-8001 Fixed the CS error of camel-smpp


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/2c4b0f98
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/2c4b0f98
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/2c4b0f98

Branch: refs/heads/camel-2.13.x
Commit: 2c4b0f9869dd1b0ee4c08a9e852cd61c52205326
Parents: daacf79
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Tue Dec 2 10:48:38 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Fri Dec 5 11:26:34 2014 +0800

----------------------------------------------------------------------
 .../main/java/org/apache/camel/component/smpp/SmppSmCommand.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/2c4b0f98/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppSmCommand.java
----------------------------------------------------------------------
diff --git a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppSmCommand.java
b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppSmCommand.java
index a9d8456..f38a57d 100644
--- a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppSmCommand.java
+++ b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppSmCommand.java
@@ -104,7 +104,7 @@ public abstract class SmppSmCommand extends AbstractSmppCommand {
         Alphabet alphabetObj;
         if (alphabet == SmppConstants.UNKNOWN_ALPHABET) {
             alphabetObj = Alphabet.ALPHA_UCS2;
-            if(isLatin1Compatible(charset)) {
+            if (isLatin1Compatible(charset)) {
                 byte[] messageBytes = body.getBytes(charset);
                 if (SmppUtils.isGsm0338Encodeable(messageBytes)) {
                     alphabetObj = Alphabet.ALPHA_DEFAULT;
@@ -118,7 +118,7 @@ public abstract class SmppSmCommand extends AbstractSmppCommand {
     }
 
     private boolean isLatin1Compatible(Charset c) {
-        if(c.equals(ascii) || c.equals(latin1)) {
+        if (c.equals(ascii) || c.equals(latin1)) {
             return true;
         }
         return false;


Mime
View raw message