Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.0
-
None
-
None
Description
As discussed on the mailing list: Remove getCOSDictionary(), use getCOSObject() instead, change return type to COSDictionary or whatever is applicable. If possible, change javadoc too.
While working on it, I noticed code like this:
if (newDomain == null) { getCOSDictionary().removeItem(COSName.DOMAIN); } else { getCOSDictionary().setItem(COSName.DOMAIN, newDomain); }
this should be replaced with
getCOSObject().setItem(COSName.DOMAIN, newDomain);
because setItem() calls removeItem() when the second parameter is nulll.