From: yongsung1.kim Date: Tue, 5 Nov 2013 07:17:15 +0000 (+0900) Subject: INST : Remove sonar critical flags. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F97%2F11797%2F1;p=sdk%2Finstaller%2Finstall-manager.git INST : Remove sonar critical flags. Change-Id: I0dd5579f244c18ae984f8e36a71149b1da9e20ab Signed-off-by: yongsung1.kim --- diff --git a/InstallManager_java/src/org/tizen/installmanager/ui/page/ViewController.java b/InstallManager_java/src/org/tizen/installmanager/ui/page/ViewController.java index efe6afb..e36303e 100644 --- a/InstallManager_java/src/org/tizen/installmanager/ui/page/ViewController.java +++ b/InstallManager_java/src/org/tizen/installmanager/ui/page/ViewController.java @@ -901,6 +901,8 @@ public class ViewController { java = new File(PathUtil.get(javaHome, "bin", "java")); } else if (Platform.isWindows()) { java = new File(PathUtil.get(javaHome, "bin", "java.exe")); + } else { + throw new IMFatalException(ErrorCode.UNSUPPORTED_PLATFORM); } String forceBitOption = "-d" + System.getProperty("sun.arch.data.model"); @@ -926,20 +928,20 @@ public class ViewController { } String repo = Config.getInstance().getConfigFile().getRepository(); - if (repo != null & !repo.isEmpty()) { + if (repo != null && !repo.isEmpty()) { commands.add("-repository"); commands.add(repo); } String dist = Config.getInstance().getConfigFile().getDistribution(); - if (repo != null & !repo.isEmpty()) { + if (repo != null && !repo.isEmpty()) { commands.add("-distribution"); commands.add(dist); } String proxyHost = Config.getInstance().getConfigFile().getProxyHost(); int proxyPort = Config.getInstance().getConfigFile().getProxyPort(); - if (proxyHost != null & !proxyHost.isEmpty()) { + if (proxyHost != null && !proxyHost.isEmpty()) { if (proxyPort > 0) { commands.add("-proxy"); commands.add(proxyHost + ":" + proxyPort);