diff options
author | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2018-03-06 14:51:56 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-03-06 14:51:56 +0000 |
commit | 18507d9eba760cc66c694f192ec502e6c92b6f9f (patch) | |
tree | e475b5891663319bc5812983a71ece41f1cd1a76 /bpmn/MSOCommonBPMN | |
parent | 2c3be92eccd45ebad09d4fea7245f11a3c14f583 (diff) | |
parent | 5b17ffb73bdbf1fdd6e41b287013af7d1e4a7e62 (diff) |
Merge "Replace StringBuilder with String & inline return"
Diffstat (limited to 'bpmn/MSOCommonBPMN')
-rw-r--r-- | bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/adapter/vnf/MsoRequest.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/adapter/vnf/MsoRequest.java b/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/adapter/vnf/MsoRequest.java index 8a9cb955b0..eabd465934 100644 --- a/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/adapter/vnf/MsoRequest.java +++ b/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/adapter/vnf/MsoRequest.java @@ -105,11 +105,8 @@ public class MsoRequest { @Override public String toString() { - StringBuilder request = new StringBuilder(); - request.append("<requestId>").append(requestId).append("</requestId>"); - request.append('\n'); - request.append("<serviceInstanceId>").append(serviceInstanceId).append("</serviceInstanceId>"); - return request.toString(); + return "<requestId>" + requestId + "</requestId>" + '\n' + "<serviceInstanceId>" + serviceInstanceId + + "</serviceInstanceId>"; } } |