private void checkDateStyle(int style) {
    if (style != DateFormat.SHORT && style != DateFormat.MEDIUM
        && style != DateFormat.LONG)
      throw new IllegalArgumentException("dateStyle: unrecognized style");
  }
private void checkDateStyle(int style)