Skip to content

Instantly share code, notes, and snippets.

@egonw
Created May 21, 2011 15:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save egonw/984635 to your computer and use it in GitHub Desktop.
@TestMethod("testCalculate_IAtomContainer")
public DescriptorValue calculate(IAtomContainer container) {
int counter;
Molecule molecule;
try {
molecule = (Molecule) container.clone();
} catch (CloneNotSupportedException e) {
logger.debug("Error during clone");
return getDummyDescriptorValue(new CDKException("Error occured during clone " + e));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment