summaryrefslogtreecommitdiffstats
path: root/vnfmarket-be/vnf-sdk-marketplace/src/main
diff options
context:
space:
mode:
authorMurali <murali.p@huawei.com>2017-09-27 12:15:16 +0000
committerMurali <murali.p@huawei.com>2017-09-27 12:15:16 +0000
commit9d43ccde37e50209870c80c62d447868b7460ef8 (patch)
tree45be40cedb3173f52e3ae1cac8cc7e38cdf05c61 /vnfmarket-be/vnf-sdk-marketplace/src/main
parentd5633dd617cb6d5992b65c0d1135ec20bfa2b451 (diff)
Fix the constructor issue
Change-Id: If71d8534a37416ddc2453d8b67be9a513ed0287a Jira:VNFSDK-85 Signed-off-by: Murali <murali.p@huawei.com>
Diffstat (limited to 'vnfmarket-be/vnf-sdk-marketplace/src/main')
-rw-r--r--vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/common/CommonErrorResponse.java11
-rw-r--r--vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/wrapper/PackageWrapperUtil.java6
2 files changed, 8 insertions, 9 deletions
diff --git a/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/common/CommonErrorResponse.java b/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/common/CommonErrorResponse.java
index 2c22bdca..967d0039 100644
--- a/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/common/CommonErrorResponse.java
+++ b/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/common/CommonErrorResponse.java
@@ -19,6 +19,11 @@ package org.onap.vnfsdk.marketplace.common;
public class CommonErrorResponse {
private String message;
+
+ public CommonErrorResponse(String message) {
+ super();
+ this.message = message;
+ }
public String getMessage() {
return message;
@@ -27,11 +32,5 @@ public class CommonErrorResponse {
public static Object failure(String message) {
return message;
}
-
- public CommonErrorResponse(String message) {
- super();
- this.message = message;
- }
-
}
diff --git a/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/wrapper/PackageWrapperUtil.java b/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/wrapper/PackageWrapperUtil.java
index 1777c1ec..8eb68eb2 100644
--- a/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/wrapper/PackageWrapperUtil.java
+++ b/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/wrapper/PackageWrapperUtil.java
@@ -184,8 +184,8 @@ public class PackageWrapperUtil {
*/
public static String getPackageName(String ftpUrl) {
int index = ftpUrl.lastIndexOf("/");
- String packageName = ftpUrl.substring(index);
- return packageName;
+
+ return ftpUrl.substring(index);
}
/**
@@ -308,7 +308,7 @@ public class PackageWrapperUtil {
File file = new File(unzipFile);
try (BufferedReader reader = new BufferedReader(new FileReader(file))) {
- for(String tempString = null; (tempString = reader.readLine()) != null;)
+ for(String tempString; (tempString = reader.readLine()) != null;)
{
// If line is empty, ignore
if ("".equals(tempString)) {