Issue#38 moved declaration gzipoutputStream inside try statement

This commit is contained in:
Didier Clermonté 2016-06-27 15:43:16 +02:00
parent 576265568b
commit ccc9dcf763
2 changed files with 1 additions and 5 deletions

View File

@ -86,9 +86,6 @@ public class SibaGUI
// Set default GUI catch. // Set default GUI catch.
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler()
{ {
/**
*
*/
@Override @Override
public void uncaughtException(final Thread thread, final Throwable exception) public void uncaughtException(final Thread thread, final Throwable exception)
{ {

View File

@ -75,10 +75,9 @@ public class SibaManager
File result; File result;
TarArchiveOutputStream out = null; TarArchiveOutputStream out = null;
OutputStream gzipOutputStream = null;
try try
{ {
OutputStream gzipOutputStream = null;
if ((fileToSave == null) || !fileToSave.exists()) if ((fileToSave == null) || !fileToSave.exists())
{ {
throw new SibaException(BUNDLE.getString("sourceNotExist.text")); throw new SibaException(BUNDLE.getString("sourceNotExist.text"));