Re: [OpenJDK 2D-Dev] RFR: 8165981: Consider making some classes in javax.imageio.plugins.tiff final

2016-10-24 Thread Sergey Bylokhov
ok +1 On 21.10.16 23:11, Brian Burkhalter wrote: Barring objections to the contrary I am inclined to go with webrev.00. There is no precedent in the public javax.imageio.plugins classes for making getters and the like final. Note also that BMPImageWriteParam, JPEGImageReadParam, and JPEGImageWri

Re: [OpenJDK 2D-Dev] RFR: 8165981: Consider making some classes in javax.imageio.plugins.tiff final

2016-10-21 Thread Brian Burkhalter
Barring objections to the contrary I am inclined to go with webrev.00. There is no precedent in the public javax.imageio.plugins classes for making getters and the like final. Note also that BMPImageWriteParam, JPEGImageReadParam, and JPEGImageWriteParam and not final either. Thanks, Brian On

Re: [OpenJDK 2D-Dev] RFR: 8165981: Consider making some classes in javax.imageio.plugins.tiff final

2016-10-18 Thread Brian Burkhalter
One could potentially change all the public getters in non-final classes in javax.imageio.plugins.tiff to be final as in http://cr.openjdk.java.net/~bpb/8165981/webrev.01/ or go even further and additionally refactor TIFFDirectory to be an interface implemented by the internal TIFFIFD class. In

Re: [OpenJDK 2D-Dev] RFR: 8165981: Consider making some classes in javax.imageio.plugins.tiff final

2016-10-04 Thread Sergey Bylokhov
Probably some methods can be made final also (at least setters and getters)? because it always a problem when we validate something in the setter(constructor), but the user returns something unspecified from the overriden getter. On 03.10.16 22:51, Brian Burkhalter wrote: Good point. I think

Re: [OpenJDK 2D-Dev] RFR: 8165981: Consider making some classes in javax.imageio.plugins.tiff final

2016-10-03 Thread Brian Burkhalter
Good point. I think TIFFIFD needs to be a subclass therefore lets leave TIFFDirectory as is. Thanks, Brian On Oct 3, 2016, at 12:44 PM, Phil Race wrote: > > Question is whether TIFFDirectory might be made final as well. > > com.sun.imageio.plugins.tiff.TIFFIFD extends TIFFDirectory so that

Re: [OpenJDK 2D-Dev] RFR: 8165981: Consider making some classes in javax.imageio.plugins.tiff final

2016-10-03 Thread Phil Race
Ok to the two you are making final. > Question is whether TIFFDirectory might be made final as well. com.sun.imageio.plugins.tiff.TIFFIFD extends TIFFDirectory so that is more than a case of marking it final. Therefore it at least depends on whether you think that internal subclass really needs

[OpenJDK 2D-Dev] RFR: 8165981: Consider making some classes in javax.imageio.plugins.tiff final

2016-10-03 Thread Brian Burkhalter
A trivial change, code-wise: --- a/src/java.desktop/share/classes/javax/imageio/plugins/tiff/TIFFField.java +++ b/src/java.desktop/share/classes/javax/imageio/plugins/tiff/TIFFField.java @@ -261,7 +261,7 @@ * @see TIFFDirectory * @see TIFFTag */ -public class TIFFField implements Cloneab