String values are compared using '.equals()' not '=='

This commit is contained in:
TfT_02 2013-08-06 21:48:09 +02:00
parent 24b1485555
commit 8bd7526b43

View File

@ -286,7 +286,7 @@ public class Config extends AutoUpdateConfigLoader {
str = String.valueOf(cfg.getInt(key));
}
if (str == "0") {
if (str.equals("0")) {
str = "No value set for '" + key + "'";
}
return str;