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/f6c5eeeb Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f6c5eeeb Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f6c5eeeb Branch: refs/heads/master Commit: f6c5eeeb874fc8aaa65b12037e1843a78330985d Parents: 6e3d218 Author: Willem Jiang <willem.ji...@gmail.com> Authored: Tue Dec 2 10:48:38 2014 +0800 Committer: Willem Jiang <willem.ji...@gmail.com> Committed: Tue Dec 2 10:53:36 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/f6c5eeeb/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;