Permalink
Browse files

Same as earlier: use the returned object, which is not the same as th…

…e passed IAtomContainer

Change-Id: I5c6424507a3bd691ce1824f64b555b643a608ff6
  • Loading branch information...
1 parent 5d9be9f commit 98560d45d12802d1b85ace179fd4d7f73a913bb7 @egonw egonw committed Feb 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/test/org/openscience/cdk/io/MDLV2000WriterTest.java
@@ -363,7 +363,7 @@ public void testAtomParity() throws CDKException, IOException{
InputStream in = ClassLoader.getSystemResourceAsStream("data/mdl/mol_testAtomParity.mol");
MDLV2000Reader reader = new MDLV2000Reader(in);
IAtomContainer molecule = DefaultChemObjectBuilder.getInstance().newInstance(IAtomContainer.class);
- reader.read(molecule);
+ molecule = reader.read(molecule);
reader.close();
StringWriter sw =new StringWriter();

0 comments on commit 98560d4

Please sign in to comment.