Permalink
Browse files

replaced cast to implementation with a cast to the interface

Change-Id: I1c23f6d4e93b7a95ce3b5205d96a047d6d4053b7
Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
  • Loading branch information...
johnmay authored and egonw committed Nov 9, 2012
1 parent 71f40a9 commit c2739304e41991383d6de8f6964f03817072345e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/org/openscience/cdk/graph/AtomContainerAtomPermutor.java
@@ -74,10 +74,10 @@ public void initObjectArray()
IAtomContainer makeResult()
{
Atom[] atoms = new Atom[objects.length];
IAtom[] atoms = new IAtom[objects.length];
for (int f = 0; f < objects.length; f++)
{
atoms[f] = ((Atom)objects[f]);
atoms[f] = (IAtom) objects[f];
}
IAtomContainer ac = atomContainer.getBuilder().newInstance(IAtomContainer.class,atomContainer);
ac.setAtoms(atoms);

0 comments on commit c273930

Please sign in to comment.