private static boolean checkExpectedBehavior() { try { return checkTT0031561767() && checkFormatIso8601Date() && checkFormatRfc822Date() && checkAlternateIso8601DateFormat() && checkInvalidDate() && checkParseCompressedIso8601Date() && checkParseIso8601Date() && checkParseIso8601DateUsingAlternativeFormat() && checkParseRfc822Date() ; } catch (Exception ignore) { } return false; }
/** * Returns the original runtime exception iff the joda-time being used * at runtime behaves as expected. * * @throws IllegalStateException if the joda-time being used at runtime * doens't appear to be of the right version. */ private static <E extends RuntimeException> E handleException(E ex) { if (JodaTime.hasExpectedBehavior()) return ex; throw new IllegalStateException("Joda-time 2.2 or later version is required, but found version: " + JodaTime.getVersion(), ex); }
private static boolean checkExpectedBehavior() { try { return checkTT0031561767() && checkFormatIso8601Date() && checkFormatRfc822Date() && checkAlternateIso8601DateFormat() && checkInvalidDate() && checkParseCompressedIso8601Date() && checkParseIso8601Date() && checkParseIso8601DateUsingAlternativeFormat() && checkParseRfc822Date() ; } catch (Exception ignore) { } return false; }
/** * Returns the original runtime exception iff the joda-time being used * at runtime behaves as expected. * * @throws IllegalStateException if the joda-time being used at runtime * doens't appear to be of the right version. */ private static <E extends RuntimeException> E handleException(E ex) { if (JodaTime.hasExpectedBehavior()) return ex; throw new IllegalStateException("Joda-time 2.2 or later version is required, but found version: " + JodaTime.getVersion(), ex); }
private static boolean checkExpectedBehavior() { try { return checkTT0031561767() && checkFormatIso8601Date() && checkFormatRfc822Date() && checkAlternateIso8601DateFormat() && checkInvalidDate() && checkParseCompressedIso8601Date() && checkParseIso8601Date() && checkParseIso8601DateUsingAlternativeFormat() && checkParseRfc822Date() ; } catch (Exception ignore) { } return false; }
/** * Returns the original runtime exception iff the joda-time being used * at runtime behaves as expected. * * @throws IllegalStateException if the joda-time being used at runtime * doens't appear to be of the right version. */ private static <E extends RuntimeException> E handleException(E ex) { if (JodaTime.hasExpectedBehavior()) return ex; throw new IllegalStateException("Joda-time 2.2 or later version is required, but found version: " + JodaTime.getVersion(), ex); }