Skip to content

Commit

Permalink
replaced cast to implementation with a cast to the interface
Browse files Browse the repository at this point in the history
Change-Id: I1c23f6d4e93b7a95ce3b5205d96a047d6d4053b7
Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
  • Loading branch information
johnmay authored and egonw committed Mar 23, 2013
1 parent 71f40a9 commit c273930
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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);
Expand Down

0 comments on commit c273930

Please sign in to comment.