diff options
author | Simon Harrer <simon.harrer@gmail.com> | 2013-10-24 11:50:04 +0200 |
---|---|---|
committer | Simon Harrer <simon.harrer@gmail.com> | 2013-10-24 11:50:04 +0200 |
commit | e3952516c835351e4e357c5ef3ee913ec78353d3 (patch) | |
tree | 2c827c066654bdce65c6b49036129a03963d4928 /src/main/java | |
parent | 0365f6248d6aaa7c765ac63273c282d16161a623 (diff) | |
download | gitblit-e3952516c835351e4e357c5ef3ee913ec78353d3.tar.gz gitblit-e3952516c835351e4e357c5ef3ee913ec78353d3.zip |
Use equals to compare strings instead of ==
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/gitblit/GitBlitServer.java | 4 | ||||
-rw-r--r-- | src/main/java/com/gitblit/authority/GitblitAuthority.java | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/gitblit/GitBlitServer.java b/src/main/java/com/gitblit/GitBlitServer.java index ace1f2f0..ca2f7ebb 100644 --- a/src/main/java/com/gitblit/GitBlitServer.java +++ b/src/main/java/com/gitblit/GitBlitServer.java @@ -95,7 +95,7 @@ public class GitBlitServer { if (i + 1 == args.length) {
System.out.println("Invalid --baseFolder parameter!");
System.exit(-1);
- } else if (args[i + 1] != ".") {
+ } else if (!".".equals(args[i + 1])) {
folder = args[i + 1];
}
i = i + 1;
@@ -346,7 +346,7 @@ public class GitBlitServer { // Start up an in-memory LDAP server, if configured
try {
- if (StringUtils.isEmpty(params.ldapLdifFile) == false) {
+ if (!StringUtils.isEmpty(params.ldapLdifFile)) {
File ldifFile = new File(params.ldapLdifFile);
if (ldifFile != null && ldifFile.exists()) {
URI ldapUrl = new URI(settings.getRequiredString(Keys.realm.ldap.server));
diff --git a/src/main/java/com/gitblit/authority/GitblitAuthority.java b/src/main/java/com/gitblit/authority/GitblitAuthority.java index 37088ae8..668ca982 100644 --- a/src/main/java/com/gitblit/authority/GitblitAuthority.java +++ b/src/main/java/com/gitblit/authority/GitblitAuthority.java @@ -146,7 +146,7 @@ public class GitblitAuthority extends JFrame implements X509Log { if (i + 1 == args.length) {
System.out.println("Invalid --baseFolder parameter!");
System.exit(-1);
- } else if (args[i + 1] != ".") {
+ } else if (!".".equals(args[i + 1])) {
folder = args[i+1];
}
break;
|