(int year)
| 2887 | } |
| 2888 | |
| 2889 | private static short checkAndCastYear(int year) |
| 2890 | { |
| 2891 | if (year < 1 || year > 9999) |
| 2892 | { |
| 2893 | throw new IllegalArgumentException(String.format("Year %s must be between 1 and 9999 inclusive", year)); |
| 2894 | } |
| 2895 | |
| 2896 | return (short) year; |
| 2897 | } |
| 2898 | |
| 2899 | private static byte checkAndCastMonth(int month) |
| 2900 | { |
no outgoing calls
no test coverage detected