Skip to content

Commit

Permalink
Changed getAdapter to work for IMolecule aswell.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvid Berg authored and egonw committed Jun 23, 2010
1 parent c6ac8f5 commit 2d381f9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -580,7 +580,7 @@ public Object getAdapter( Class adapter ) {
return mol.getAtomContainer();
return null;
}
if( ICDKMolecule.class.equals( adapter )) {
if( adapter.isAssignableFrom(ICDKMolecule.class)) {
return getCDKMolecule();
}
return super.getAdapter( adapter );
Expand Down

0 comments on commit 2d381f9

Please sign in to comment.