# HG changeset patch # User bpb # Date 1477586326 25200 # Node ID 6181b834ba16ebc18b6e59cd7b73cfb4c425f500 # Parent 2458a1b354dd80f0c5cb89a781fcb467d4e30af5 8165981: Consider making some classes in javax.imageio.plugins.tiff final Summary: Make the classes TIFFField and TIFFImageReadParam final. Reviewed-by: serb, prr diff -r 2458a1b354dd -r 6181b834ba16 jdk/src/java.desktop/share/classes/javax/imageio/plugins/tiff/TIFFField.java --- a/jdk/src/java.desktop/share/classes/javax/imageio/plugins/tiff/TIFFField.java Thu Oct 27 17:24:16 2016 +0530 +++ b/jdk/src/java.desktop/share/classes/javax/imageio/plugins/tiff/TIFFField.java Thu Oct 27 09:38:46 2016 -0700 @@ -261,7 +261,7 @@ * @see TIFFDirectory * @see TIFFTag */ -public class TIFFField implements Cloneable { +public final class TIFFField implements Cloneable { private static final String[] typeNames = { null, diff -r 2458a1b354dd -r 6181b834ba16 jdk/src/java.desktop/share/classes/javax/imageio/plugins/tiff/TIFFImageReadParam.java --- a/jdk/src/java.desktop/share/classes/javax/imageio/plugins/tiff/TIFFImageReadParam.java Thu Oct 27 17:24:16 2016 +0530 +++ b/jdk/src/java.desktop/share/classes/javax/imageio/plugins/tiff/TIFFImageReadParam.java Thu Oct 27 09:38:46 2016 -0700 @@ -48,7 +48,7 @@ * * @since 9 */ -public class TIFFImageReadParam extends ImageReadParam { +public final class TIFFImageReadParam extends ImageReadParam { private List allowedTagSets = new ArrayList(4);