changeset 16004:807349334f32

8165981: Consider making some classes in javax.imageio.plugins.tiff final Summary: Make the classes TIFFField and TIFFImageReadParam final. Reviewed-by: serb, prr
author bpb
date Thu, 27 Oct 2016 09:38:46 -0700
parents b82c04707671
children 3bf26b1c7c7e
files src/java.desktop/share/classes/javax/imageio/plugins/tiff/TIFFField.java src/java.desktop/share/classes/javax/imageio/plugins/tiff/TIFFImageReadParam.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/classes/javax/imageio/plugins/tiff/TIFFField.java	Thu Oct 27 17:24:16 2016 +0530
+++ b/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/src/java.desktop/share/classes/javax/imageio/plugins/tiff/TIFFImageReadParam.java	Thu Oct 27 17:24:16 2016 +0530
+++ b/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);