From 57e067a9a16ec5472facb9f891a94f1451889bb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Clermont=C3=A9?= Date: Tue, 21 Jun 2016 22:14:02 +0200 Subject: [PATCH] Issue#30 replaced default initialization by an else statement --- src/org/dclermonte/siba/model/SibaUtils.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/org/dclermonte/siba/model/SibaUtils.java b/src/org/dclermonte/siba/model/SibaUtils.java index 24b3b71..a7fed24 100644 --- a/src/org/dclermonte/siba/model/SibaUtils.java +++ b/src/org/dclermonte/siba/model/SibaUtils.java @@ -47,7 +47,6 @@ public class SibaUtils public static String loadMD5Sum(final File choosenFile) throws IOException { String result; - result = ""; if (choosenFile.exists() && (choosenFile.length() > 32)) { @@ -57,6 +56,10 @@ public class SibaUtils result = line.substring(0, 32); fileReader.close(); } + else + { + result = ""; + } // return result; @@ -124,7 +127,7 @@ public class SibaUtils { File result; - result = null; + // result = null; if (choosenFile.exists() && (choosenFile.length() > 32)) { FileReader fileReader = new FileReader(choosenFile); @@ -142,8 +145,12 @@ public class SibaUtils String path = System.getProperty("user.dir"); result = new File(path + "/" + fileNameToString); } - } + } + else + { + result = null; + } // return result; }