Replace with equalsIgnoreCase 33/93333/1
authorsindhu3672 <arcot.sindhuri@huawei.com>
Mon, 12 Aug 2019 11:28:40 +0000 (16:58 +0530)
committersindhu3672 <arcot.sindhuri@huawei.com>
Mon, 12 Aug 2019 11:28:40 +0000 (16:58 +0530)
Replace with equalsIgnoreCase bpmn ServicePluginFactory class

Issue-ID: SO-2187

Signed-off-by: sindhu3672 <arcot.sindhuri@huawei.com>
Change-Id: I2860546bb921a1b685f824beb0cd790e826435ad

bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/workflow/service/ServicePluginFactory.java

index 579e7b7..2f05eb5 100644 (file)
@@ -863,23 +863,23 @@ public class ServicePluginFactory {
 
             HttpClient client = HttpClientBuilder.create().build();
 
-            if ("POST".equals(methodType.toUpperCase())) {
+            if ("POST".equalsIgnoreCase(methodType)) {
                 HttpPost httpPost = new HttpPost(msbUrl);
                 httpPost.setConfig(requestConfig);
                 httpPost.setEntity(new StringEntity(content, ContentType.APPLICATION_JSON));
                 method = httpPost;
-            } else if ("PUT".equals(methodType.toUpperCase())) {
+            } else if ("PUT".equalsIgnoreCase(methodType)) {
                 HttpPut httpPut = new HttpPut(msbUrl);
                 httpPut.setConfig(requestConfig);
                 httpPut.setEntity(new StringEntity(content, ContentType.APPLICATION_JSON));
                 method = httpPut;
-            } else if ("GET".equals(methodType.toUpperCase())) {
+            } else if ("GET".equalsIgnoreCase(methodType)) {
                 HttpGet httpGet = new HttpGet(msbUrl);
                 httpGet.setConfig(requestConfig);
                 httpGet.addHeader("X-FromAppId", "MSO");
                 httpGet.addHeader("Accept", "application/json");
                 method = httpGet;
-            } else if ("DELETE".equals(methodType.toUpperCase())) {
+            } else if ("DELETE".equalsIgnoreCase(methodType)) {
                 HttpDelete httpDelete = new HttpDelete(msbUrl);
                 httpDelete.setConfig(requestConfig);
                 method = httpDelete;