(String input)
| 666 | } |
| 667 | |
| 668 | public static int parseInt(String input) { |
| 669 | if (input == null || input.isEmpty()) { |
| 670 | return 0; |
| 671 | } |
| 672 | try { |
| 673 | return Integer.parseInt(input); |
| 674 | } catch (NumberFormatException ignored) { |
| 675 | return 0; |
| 676 | } |
| 677 | } |
| 678 | |
| 679 | public enum Platform { |
| 680 | WINDOWS, MAC, LINUX, SOLARIS, UNKNOWN |
no test coverage detected