Unchecked exceptions in production:
try {
DateTimeFormatter UTC_PARSER = ...
return UTC_PARSER.parseDateTime(date);
} catch (IllegalArgumentException e) {
2023 commit where I replaced joda.time with JDK builtin.
- return UTC_PARSER.parseDateTime(date);
+ return Instant.from(UTC_PARSER.parse(date));
No IDE, no compiler told me the fuck that the **unchecked** exception had changed to DateTimeParseException. Crashed today.