String fix? (using !equals() instead of != to compare Strings

This commit is contained in:
Neptune Whitebear 2011-10-04 12:56:43 +02:00
parent 2631bf40b2
commit d006503e8b

View File

@ -210,7 +210,7 @@ public class boosCoolDownManager {
String confTime = ""; String confTime = "";
confTime = confusers.getString("users." + player.getName() + ".cooldown." + pre, null); confTime = confusers.getString("users." + player.getName() + ".cooldown." + pre, null);
if (confTime != null && confTime != "") { if (confTime != null && !confTime.equals( "" ) ) {
SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy HH:mm:ss");
Date lastDate = null; Date lastDate = null;