From 01bf9b6a5d324d45355659581e9ebbd1280834fe Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 25 Apr 2016 14:41:26 +0000
Subject: [PATCH] Improvements suggested by UCDetector: remove dead code, add final keywords, change visibilities

---
 opendj-server-legacy/src/main/java/org/opends/quicksetup/util/ZipExtractor.java |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/quicksetup/util/ZipExtractor.java b/opendj-server-legacy/src/main/java/org/opends/quicksetup/util/ZipExtractor.java
index 715a90b..91ca3b9 100644
--- a/opendj-server-legacy/src/main/java/org/opends/quicksetup/util/ZipExtractor.java
+++ b/opendj-server-legacy/src/main/java/org/opends/quicksetup/util/ZipExtractor.java
@@ -93,7 +93,7 @@
    * @throws FileNotFoundException if the specified file does not exist
    * @throws IllegalArgumentException if the zip file is not a zip file
    */
-  public ZipExtractor(File zipFile, int minRatio, int maxRatio,
+  private ZipExtractor(File zipFile, int minRatio, int maxRatio,
                                       int numberZipEntries,
                                       Application app)
     throws FileNotFoundException, IllegalArgumentException
@@ -118,7 +118,7 @@
    * @param zipFileName name of the input zip file
    * @param app application to be notified about progress
    */
-  public ZipExtractor(InputStream is, int minRatio, int maxRatio,
+  private ZipExtractor(InputStream is, int minRatio, int maxRatio,
                                       int numberZipEntries,
                                       String zipFileName,
                                       Application app) {
@@ -144,7 +144,8 @@
    * @param destination File where the zip file will be extracted
    * @throws ApplicationException if something goes wrong
    */
-  public void extract(String destination) throws ApplicationException {
+  private void extract(String destination) throws ApplicationException
+  {
     extract(destination, true);
   }
 
@@ -158,7 +159,7 @@
    * directory as 'some_file'.
    * @throws ApplicationException if something goes wrong
    */
-  public void extract(String destDir, boolean removeFirstPath)
+  private void extract(String destDir, boolean removeFirstPath)
           throws ApplicationException
   {
     ZipInputStream zipIn = new ZipInputStream(is);

--
Gitblit v1.10.0