8165981: Consider making some classes in javax.imageio.plugins.tiff final
authorbpb
Thu, 27 Oct 2016 09:38:46 -0700
changeset 41900 6181b834ba16
parent 41899 2458a1b354dd
child 41901 48a55de1ba10
8165981: Consider making some classes in javax.imageio.plugins.tiff final Summary: Make the classes TIFFField and TIFFImageReadParam final. Reviewed-by: serb, prr
jdk/src/java.desktop/share/classes/javax/imageio/plugins/tiff/TIFFField.java
jdk/src/java.desktop/share/classes/javax/imageio/plugins/tiff/TIFFImageReadParam.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,
--- 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);