Replace String literal with constant 98/85898/2
authorSindhuri.A <arcot.sindhuri@huawei.com>
Sat, 20 Apr 2019 13:49:40 +0000 (19:19 +0530)
committerSindhu A <arcot.sindhuri@huawei.com>
Sat, 20 Apr 2019 14:27:07 +0000 (14:27 +0000)
Replace String literal with a constant VnfAdapterNotify_Service class

Issue-ID: SO-1490

Change-Id: Iebcfb6254fce98cc09e772389629bba2af169194
Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/vnf/async/client/VnfAdapterNotify_Service.java

index 073ea35..402d0af 100644 (file)
@@ -7,9 +7,9 @@
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -31,7 +31,7 @@ import javax.xml.ws.WebServiceFeature;
 
 /**
  * This class was generated by the JAX-WS RI. JAX-WS RI 2.2.9-b14002 Generated source version: 2.2
- * 
+ *
  */
 @WebServiceClient(name = "vnfAdapterNotify", targetNamespace = "http://org.onap.so/vnfNotify",
         wsdlLocation = "/VnfAdapterNotify.wsdl")
@@ -39,7 +39,8 @@ public class VnfAdapterNotify_Service extends Service {
 
     private static final URL VNFADAPTERNOTIFY_WSDL_LOCATION;
     private static final WebServiceException VNFADAPTERNOTIFY_EXCEPTION;
-    private static final QName VNFADAPTERNOTIFY_QNAME = new QName("http://org.onap.so/vnfNotify", "vnfAdapterNotify");
+    private static final String VNF_NOTIFY_URL = "http://org.onap.so/vnfNotify";
+    private static final QName VNFADAPTERNOTIFY_QNAME = new QName(VNF_NOTIFY_URL, "vnfAdapterNotify");
 
     static {
         VNFADAPTERNOTIFY_WSDL_LOCATION = org.onap.so.adapters.vnf.async.client.VnfAdapterNotify_Service.class
@@ -77,25 +78,23 @@ public class VnfAdapterNotify_Service extends Service {
     }
 
     /**
-     * 
+     *
      * @return returns VnfAdapterNotify
      */
     @WebEndpoint(name = "MsoVnfAdapterAsyncImplPort")
     public VnfAdapterNotify getMsoVnfAdapterAsyncImplPort() {
-        return super.getPort(new QName("http://org.onap.so/vnfNotify", "MsoVnfAdapterAsyncImplPort"),
-                VnfAdapterNotify.class);
+        return super.getPort(new QName(VNF_NOTIFY_URL, "MsoVnfAdapterAsyncImplPort"), VnfAdapterNotify.class);
     }
 
     /**
-     * 
+     *
      * @param features A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features
      *        not in the <code>features</code> parameter will have their default values.
      * @return returns VnfAdapterNotify
      */
     @WebEndpoint(name = "MsoVnfAdapterAsyncImplPort")
     public VnfAdapterNotify getMsoVnfAdapterAsyncImplPort(WebServiceFeature... features) {
-        return super.getPort(new QName("http://org.onap.so/vnfNotify", "MsoVnfAdapterAsyncImplPort"),
-                VnfAdapterNotify.class, features);
+        return super.getPort(new QName(VNF_NOTIFY_URL, "MsoVnfAdapterAsyncImplPort"), VnfAdapterNotify.class, features);
     }
 
     private static URL getWsdlLocation() {