Fix the bug "setDeletionPending cannot work"
authornancylizi <li.zi30@zte.com.cn>
Sat, 4 Feb 2017 07:43:20 +0000 (15:43 +0800)
committernancylizi <li.zi30@zte.com.cn>
Sat, 4 Feb 2017 07:43:20 +0000 (15:43 +0800)
Issue-id:TOSCA-201

Change-Id: Idf55da118d4fad3b544fc48f99ad74c563b8d77d
Signed-off-by: nancylizi <li.zi30@zte.com.cn>
catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/wrapper/PackageWrapperUtil.java

index 3e494e2..abb890c 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Copyright 2016 ZTE Corporation.
+ * Copyright 2016-2017 ZTE Corporation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -308,7 +308,7 @@ public class PackageWrapperUtil {
     PackageMeta meta = new PackageMeta();
     meta.setCsarId(packageData.getCsarId());
     meta.setCreateTime(packageData.getCreateTime());
-    meta.setDeletionPending(Boolean.getBoolean(packageData.getDeletionPending()));
+    meta.setDeletionPending(Boolean.valueOf(packageData.getDeletionPending()));
     String packageUri =
         packageData.getDownloadUri() + packageData.getName() + CommonConstant.CSAR_SUFFIX;
     String packageUrl = getUrl(packageUri);