Style fix, removed useless cases

This commit is contained in:
Gabriele C 2015-08-06 14:33:15 +02:00
parent 8c49bfdbf4
commit 690af050e1
3 changed files with 5 additions and 15 deletions

View File

@ -79,8 +79,10 @@ public class Configuration {
lastLine = scanner.nextLine();
}
if (scanner != null)
if (scanner != null) {
scanner.close();
}
return lastLine.isEmpty();
} catch (FileNotFoundException e) {
e.printStackTrace();

View File

@ -47,12 +47,8 @@ public class ErrorMessageSender implements Listener {
case NOT_ENOUGH_MONEY:
message = Messages.NOT_ENOUGH_MONEY;
break;
case OTHER:
default:
break;
case SHOP_CREATED_SUCCESSFULLY:
break;
default:
break;
}
if (message != null) {

View File

@ -73,16 +73,8 @@ public class ErrorMessageSender implements Listener {
case INVALID_SHOP:
message = Messages.INVALID_SHOP_DETECTED;
break;
case CREATIVE_MODE_PROTECTION:
default:
break;
case OTHER:
break;
case SPAM_CLICKING_PROTECTION:
break;
case TRANSACTION_SUCCESFUL:
break;
default:
break;
}
if (message != null) {