bmpn sonar issue fix
[so.git] / bpmn / MSOCoreBPMN / src / main / java / org / openecomp / mso / bpmn / core / PropertyConfigurationSetup.java
index f58efe7..ce171b5 100644 (file)
@@ -1,3 +1,24 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP - SO
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights reserved.
+ * ================================================================================
+ * 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.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
 package org.openecomp.mso.bpmn.core;
 
 import java.io.FileOutputStream;
@@ -11,6 +32,8 @@ import java.util.HashMap;
 import java.util.Map;
 import java.util.Properties;
 
+import org.openecomp.mso.logger.MsoLogger;
+
 import org.openecomp.mso.bpmn.core.PropertyConfiguration;
 
 /**
@@ -22,6 +45,8 @@ public class PropertyConfigurationSetup {
        private static Path bpmnPropertiesPath = null;
        private static Path bpmnUrnPropertiesPath = null;
        private static boolean modifiedConfiguration = false;
+       
+       private static final MsoLogger LOGGER = MsoLogger.getMsoLogger(MsoLogger.Catalog.BPEL);
 
        /**
         * Ensures that the the PropertyConfiguration is initialized and that the
@@ -232,7 +257,7 @@ public class PropertyConfigurationSetup {
                                try {
                                        fileReader.close();
                                } catch (IOException e) {
-                                       // Ignore
+                                       LOGGER.debug("Exception :",e);
                                }
                        }
 
@@ -240,7 +265,7 @@ public class PropertyConfigurationSetup {
                                try {
                                        outputStream.close();
                                } catch (IOException e) {
-                                       // Ignore
+                                       LOGGER.debug("Exception :",e);
                                }
                        }
                }
@@ -279,7 +304,7 @@ public class PropertyConfigurationSetup {
                                try {
                                        fileReader.close();
                                } catch (IOException e) {
-                                       // Ignore
+                                       LOGGER.debug("Exception :",e);
                                }
                        }
 
@@ -287,7 +312,7 @@ public class PropertyConfigurationSetup {
                                try {
                                        outputStream.close();
                                } catch (IOException e) {
-                                       // Ignore
+                                       LOGGER.debug("Exception :",e);
                                }
                        }
                }