Fix some code style issues

This commit is contained in:
graywolf336
2016-05-31 12:38:39 -05:00
parent 1b3d8c7bdf
commit 1e241eef3c
9 changed files with 42 additions and 46 deletions

View File

@ -407,6 +407,9 @@ public class JailIO {
default:
break;
}
//Make sure the statement is closed.
if(!st.isClosed()) st.close();
} catch (SQLException e) {
e.printStackTrace();
pl.getLogger().severe("---------- Jail Error!!! ----------");
@ -512,7 +515,7 @@ public class JailIO {
}
//Remove the invalid prisoners
if(cellsToRemove.size() != 0) {
if(!cellsToRemove.isEmpty()) {
StringBuilder ids = new StringBuilder();
for(int c : cellsToRemove) {
if(ids.length() == 0) ids.append("'" + c + "'");
@ -585,7 +588,7 @@ public class JailIO {
}
//Remove the invalid prisoners
if(prisonersToRemove.size() != 0) {
if(!prisonersToRemove.isEmpty()) {
String names = "";
for(String s : prisonersToRemove) {
if(names.isEmpty()) names = "'" + s + "'";