> Am 23.04.2015 um 11:02 schrieb John Hewson <[email protected]>:
> 
> 
> 
>> On 15 Apr 2015, at 04:47, Simon Steiner <[email protected]> wrote:
>> 
>> Hi,
>> 
>> 
>> 
>> Why do you  have classes where getCOSObject is public but getCOSDictionary
>> is not public?
> 
> Legacy quirk. There's actually no need for any of the getCOSDictionary() 
> methods, as getCOSObject() can be overloaded in any COSObjectable subclass to 
> have COSDictionary as its return type. It seems that the author of 
> getCOSDictionary(), etc. was not aware of this feature of the Java type 
> system.

another side node - sometimes to get the COSDictionary the method is 
getCOSDictionary() and sometimes it's simply getDictionary() e.g. in 
PDAcroForm. Maybe worth considering to make that consistent - would got for 
getCOSxxx().

BR

> 
> -- John
> 
>> 
>> Thanks
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to