INST : Remove sonar critical flags. 97/11797/1
authoryongsung1.kim <yongsung1.kim@samsung.com>
Tue, 5 Nov 2013 07:17:15 +0000 (16:17 +0900)
committeryongsung1.kim <yongsung1.kim@samsung.com>
Tue, 5 Nov 2013 07:17:15 +0000 (16:17 +0900)
Change-Id: I0dd5579f244c18ae984f8e36a71149b1da9e20ab
Signed-off-by: yongsung1.kim <yongsung1.kim@samsung.com>
InstallManager_java/src/org/tizen/installmanager/ui/page/ViewController.java

index efe6afb..e36303e 100644 (file)
@@ -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);