8165981: Consider making some classes in javax.imageio.plugins.tiff final
Summary: Make the classes TIFFField and TIFFImageReadParam final.
Reviewed-by: serb, prr
--- 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,
--- 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<TIFFTagSet> allowedTagSets = new ArrayList<TIFFTagSet>(4);