public static void tryFormatSatisfiability(String format) throws IllegalFormatException {
  @SuppressWarnings("unused") String unused=String.format(format,(Object[])null);
}

public static void tryFormatSatisfiability ( String format ) throws IllegalFormatException { @ SuppressWarnings ( "unused" ) String unused = String . format ( format , ( Object [ ] ) null ) ; }
throws an exception if the format is not syntactically valid .
