Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A037810F35 for ; Fri, 5 Dec 2014 03:26:57 +0000 (UTC) Received: (qmail 1342 invoked by uid 500); 5 Dec 2014 03:26:57 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 1203 invoked by uid 500); 5 Dec 2014 03:26:57 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 821 invoked by uid 99); 5 Dec 2014 03:26:56 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Dec 2014 03:26:56 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 0035AA1DBCF; Fri, 5 Dec 2014 03:26:55 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ningjiang@apache.org To: commits@camel.apache.org Date: Fri, 05 Dec 2014 03:27:00 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [6/6] camel git commit: CAMEL-8001 Fixed the CS error of camel-smpp 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 Authored: Tue Dec 2 10:48:38 2014 +0800 Committer: Willem Jiang 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;