private static void checkPreconditions ( final String dateFormat , final Locale locale ) { if ( dateFormat == null ) { throw new NullPointerException ( "dateFormat should not be null" ) ; } else if ( locale == null ) { throw new NullPointerException ( "locale should not be null" ) ; } }
Checks the preconditions for creating a new ParseDateTimeAbstract processor with date format and locale .