< prev index next >

src/java.desktop/share/classes/javax/imageio/plugins/tiff/TIFFField.java

Print this page

        

*** 670,680 **** * @throws NullPointerException if {@code tag == null}. * @throws IllegalArgumentException if the derived type is unacceptable * for the supplied {@code TIFFTag}. * @throws IllegalArgumentException if {@code value < 0}. */ ! public TIFFField(TIFFTag tag, int value) { if(tag == null) { throw new NullPointerException("tag == null!"); } if (value < 0) { throw new IllegalArgumentException("value < 0!"); --- 670,680 ---- * @throws NullPointerException if {@code tag == null}. * @throws IllegalArgumentException if the derived type is unacceptable * for the supplied {@code TIFFTag}. * @throws IllegalArgumentException if {@code value < 0}. */ ! public TIFFField(TIFFTag tag, long value) { if(tag == null) { throw new NullPointerException("tag == null!"); } if (value < 0) { throw new IllegalArgumentException("value < 0!");
< prev index next >