]> source.dussan.org Git - gitblit.git/commitdiff
Use equals to compare strings instead of == 120/head
authorSimon Harrer <simon.harrer@gmail.com>
Thu, 24 Oct 2013 09:50:04 +0000 (11:50 +0200)
committerSimon Harrer <simon.harrer@gmail.com>
Thu, 24 Oct 2013 09:50:04 +0000 (11:50 +0200)
src/main/java/com/gitblit/GitBlitServer.java
src/main/java/com/gitblit/authority/GitblitAuthority.java

index ace1f2f0cd8499e7dae2c2e7bb94d6d77dd8f5a7..ca2f7ebbfe3b1eca7c421d75ba5eee57f97568c8 100644 (file)
@@ -95,7 +95,7 @@ public class GitBlitServer {
                                if (i + 1 == args.length) {\r
                                        System.out.println("Invalid --baseFolder parameter!");\r
                                        System.exit(-1);\r
-                               } else if (args[i + 1] != ".") {\r
+                               } else if (!".".equals(args[i + 1])) {\r
                                        folder = args[i + 1];\r
                                }\r
                                i = i + 1;\r
@@ -346,7 +346,7 @@ public class GitBlitServer {
 \r
                // Start up an in-memory LDAP server, if configured\r
                try {\r
-                       if (StringUtils.isEmpty(params.ldapLdifFile) == false) {\r
+                       if (!StringUtils.isEmpty(params.ldapLdifFile)) {\r
                                File ldifFile = new File(params.ldapLdifFile);\r
                                if (ldifFile != null && ldifFile.exists()) {\r
                                        URI ldapUrl = new URI(settings.getRequiredString(Keys.realm.ldap.server));\r
index 37088ae8678f4bbe90520513fe289e3d6c800a25..668ca98216a02aca0ca18a47db913aebf95f62c5 100644 (file)
@@ -146,7 +146,7 @@ public class GitblitAuthority extends JFrame implements X509Log {
                                if (i + 1 == args.length) {\r
                                        System.out.println("Invalid --baseFolder parameter!");\r
                                        System.exit(-1);\r
-                               } else if (args[i + 1] != ".") {\r
+                               } else if (!".".equals(args[i + 1])) {\r
                                        folder = args[i+1];\r
                                }\r
                                break;\r