public IChemObject read(IChemObject object) throws CDKException {
if (object instanceof IMolecule) {
return readMolecule((IMolecule)object);
} else {
throw new CDKException(
"Only supported is reading of IMolecule objects."
);
}
}
but readMolecule(IMolecule) is a private method that just returns the
input argument? I think you could drop this private method and just return
the molecule. Or is there a reason for it being there?
Patch available from:
https://sourceforge.net/tracker/?func=detail&aid=3330017&group_id=20024&atid=320024
Patch was applied.