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(); lastLine = scanner.nextLine();
} }
if (scanner != null) if (scanner != null) {
scanner.close(); scanner.close();
}
return lastLine.isEmpty(); return lastLine.isEmpty();
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
e.printStackTrace(); e.printStackTrace();

View File

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

View File

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