One could potentially change all the public getters in non-final classes in 
javax.imageio.plugins.tiff to be final as in

or go even further and additionally refactor TIFFDirectory to be an interface 
implemented by the internal TIFFIFD class. In the interest of mitigating to an 
extent the difficulty encountered by any users potentially migrating from the 
original JAI Image I/O Tools package, I would however be more in favor of 
keeping the original proposal in this thread

wherein only TIFFField and TIFFImageReadParam are made final.



On Oct 4, 2016, at 4:13 PM, Sergey Bylokhov <> wrote:

> 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 TIFFIFD needs to be a subclass therefore lets leave
>> TIFFDirectory as is.

Reply via email to