Revert "introduced StringUtil class with .isEmpty(String input) and .isNotEmp…"

This commit is contained in:
LevelX2 2016-09-16 23:55:54 +02:00 committed by GitHub
parent 18e771ccd5
commit d7dd635bca
51 changed files with 96 additions and 294 deletions

View file

@ -69,7 +69,7 @@ public class TablePlayerPanel extends javax.swing.JPanel {
cbPlayerType.setSelectedIndex(cbPlayerType.getItemCount() - 1);
}
else {
int index = Integer.parseInt(Config.defaultOtherPlayerIndex);
Integer index = Integer.parseInt(Config.defaultOtherPlayerIndex);
cbPlayerType.setSelectedIndex(index);
}
}
@ -78,7 +78,7 @@ public class TablePlayerPanel extends javax.swing.JPanel {
}
}
public boolean joinTable(UUID roomId, UUID tableId) {
public boolean joinTable(UUID roomId, UUID tableId) throws FileNotFoundException, IOException, ClassNotFoundException {
if (!this.cbPlayerType.getSelectedItem().equals("Human")) {
return SessionHandler.joinTable(roomId, tableId, this.newPlayerPanel.getPlayerName(), (String)this.cbPlayerType.getSelectedItem(), this.newPlayerPanel.getLevel(), DeckImporterUtil.importDeck(this.newPlayerPanel.getDeckFile()),"");
}