Merge "Removed unused imports and log file"
authorvarun gudisena <varuneshwar.gudisena@att.com>
Fri, 18 Jan 2019 22:19:19 +0000 (22:19 +0000)
committerGerrit Code Review <gerrit@onap.org>
Fri, 18 Jan 2019 22:19:19 +0000 (22:19 +0000)
1  2 
src/main/java/org/onap/dmaap/mr/dmaapMMAgent/MirrorMakerAgent.java

   *******************************************************************************/
  package org.onap.dmaap.mr.dmaapMMAgent;
  
- import java.io.BufferedReader;
- import java.io.DataOutputStream;
  import java.io.File;
  import java.io.FileInputStream;
  import java.io.FileOutputStream;
  import java.io.IOException;
  import java.io.InputStream;
- import java.io.InputStreamReader;
  import java.io.OutputStream;
- import java.net.HttpURLConnection;
- import java.net.URL;
  import java.util.ArrayList;
  import java.util.Properties;
- import org.json.JSONObject;
  import org.apache.log4j.Logger;
  import org.jasypt.util.text.BasicTextEncryptor;
+ import org.json.JSONObject;
  import org.onap.dmaap.mr.dmaapMMAgent.dao.CreateMirrorMaker;
  import org.onap.dmaap.mr.dmaapMMAgent.dao.DeleteMirrorMaker;
  import org.onap.dmaap.mr.dmaapMMAgent.dao.ListMirrorMaker;
@@@ -45,13 -40,10 +40,10 @@@ import org.onap.dmaap.mr.dmaapMMAgent.d
  import org.onap.dmaap.mr.dmaapMMAgent.dao.UpdateMirrorMaker;
  import org.onap.dmaap.mr.dmaapMMAgent.dao.UpdateWhiteList;
  import org.onap.dmaap.mr.dmaapMMAgent.utils.MirrorMakerProcessHandler;
  import com.google.gson.Gson;
- import com.google.gson.JsonArray;
  import com.google.gson.internal.LinkedTreeMap;
  
- import com.sun.org.apache.xerces.internal.impl.dtd.models.CMAny;
- import com.sun.org.apache.xerces.internal.impl.dv.util.Base64;
  public class MirrorMakerAgent {
        static final Logger logger = Logger.getLogger(MirrorMakerAgent.class);
        Properties mirrorMakerProperties = new Properties();
                                try {
                                        input.close();
                                } catch (IOException e) {
 -                                      e.printStackTrace();
 +                                      logger.error("exception occured in checkStartup "+e);
                                }
                        }
                }
                                try {
                                        input.close();
                                } catch (IOException e) {
 -                                      e.printStackTrace();
 +                                      logger.error("exception occured in checkStartup "+e);
                                }
                        }
                }
                                prop.store(out, "");
  
                        } catch (Exception e) {
 -                              e.printStackTrace();
 +                              logger.error("exception occured in checkPropertiesFile "+e);
                        }
                } finally {
                        if (input != null) {
                                try {
                                        out.close();
                                } catch (IOException e) {
 -                                      e.printStackTrace();
 +                                      logger.error("exception occured in checkPropertiesFile "+e);
                                }
                        }
                }

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use