Total Complexity | 3 |
Total Lines | 12 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | /* |
||
31 | 1 | public final class KickOrLeaveRequestParser implements SinglePacketParser<Packet> { |
|
32 | @Override |
||
33 | public Packet parse(String input) throws ParsePacketException { |
||
34 | 1 | return input.isEmpty() |
|
35 | ? new LeaveFightRequest() |
||
36 | 1 | : new KickFighterRequest(Integer.parseInt(input)) |
|
37 | ; |
||
38 | } |
||
39 | |||
40 | @Override |
||
41 | public String code() { |
||
42 | 1 | return "GQ"; |
|
43 | } |
||
45 |