8165981: Consider making some classes in javax.imageio.plugins.tiff final

Make the classes TIFFField and TIFFImageReadParam final.

Reviewed-by: serb, prr
This commit is contained in:
Brian Burkhalter 2016-10-27 09:38:46 -07:00
parent db6a8106b1
commit 3757778deb
2 changed files with 2 additions and 2 deletions

View File

@ -261,7 +261,7 @@ import com.sun.imageio.plugins.tiff.TIFFIFD;
* @see TIFFDirectory
* @see TIFFTag
*/
public class TIFFField implements Cloneable {
public final class TIFFField implements Cloneable {
private static final String[] typeNames = {
null,

View File

@ -48,7 +48,7 @@ import javax.imageio.ImageReadParam;
*
* @since 9
*/
public class TIFFImageReadParam extends ImageReadParam {
public final class TIFFImageReadParam extends ImageReadParam {
private List<TIFFTagSet> allowedTagSets = new ArrayList<TIFFTagSet>(4);