private static void checkPreconditions ( final int maxSize , final String suffix ) { if ( maxSize <= 0 ) { throw new IllegalArgumentException ( String . format ( "maxSize should be > 0 but was %d" , maxSize ) ) ; } if ( suffix == null ) { throw new NullPointerException ( "suffix should not be null" ) ; } }
Checks the preconditions for creating a new Truncate processor .