This is an automated email from the ASF dual-hosted git repository.

pascalschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 140239e  SmppBinding#createSmppMessage: Remove unnecessary 
String#valueOf for newly created String.
140239e is described below

commit 140239ea56548c5bb6a6b15318745e63305d1002
Author: Pascal Schumacher <pascalschumac...@gmx.net>
AuthorDate: Sun Mar 29 16:03:10 2020 +0200

    SmppBinding#createSmppMessage: Remove unnecessary String#valueOf for newly 
created String.
---
 .../src/main/java/org/apache/camel/component/smpp/SmppBinding.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppBinding.java
 
b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppBinding.java
index 820b485..26e3cb7 100644
--- 
a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppBinding.java
+++ 
b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppBinding.java
@@ -153,7 +153,7 @@ public class SmppBinding {
                 if (SmppUtils.is8Bit(alphabet)) {
                     smppMessage.setBody(deliverSm.getShortMessage());
                 } else {
-                    smppMessage.setBody(String.valueOf(new 
String(deliverSm.getShortMessage(), configuration.getEncoding())));
+                    smppMessage.setBody(new 
String(deliverSm.getShortMessage(), configuration.getEncoding()));
                 }
             } else if (messagePayload != null) {
                 smppMessage.setBody(messagePayload);

Reply via email to