replace String.isEmpty() with String.length()==0 for Java < 1.6 compat.

This commit is contained in:
jendave
2011-08-06 08:57:29 +00:00
parent b9f7457fc2
commit 0fd45c5898

View File

@@ -57,7 +57,7 @@ public class QuestData_Prefs implements Serializable {
BufferedReader input = new BufferedReader(new FileReader(ForgeProps.getFile(QUEST.PREFS))); BufferedReader input = new BufferedReader(new FileReader(ForgeProps.getFile(QUEST.PREFS)));
String line = null; String line = null;
while((line = input.readLine()) != null){ while((line = input.readLine()) != null){
if (line.startsWith("#") || line.isEmpty()) if (line.startsWith("#") || line.length() == 0)
continue; continue;
String[] split = line.split("="); String[] split = line.split("=");