Skip to content

Commit

Permalink
Also take into account super classes
Browse files Browse the repository at this point in the history
Signed-off-by: Rajarshi  Guha <rajarshi.guha@gmail.com>
  • Loading branch information
egonw authored and rajarshi committed Aug 29, 2010
1 parent f0256d0 commit 0de5777
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/org/openscience/cdk/io/SMILESWriter.java
Expand Up @@ -134,6 +134,8 @@ public boolean accepts(Class classObject) {
if (IMoleculeSet.class.equals(interfaces[i])) return true;
if (IMolecule.class.equals(interfaces[i])) return true;
}
Class superClass = classObject.getSuperclass();
if (superClass != null) return this.accepts(superClass);
return false;
}

Expand Down

0 comments on commit 0de5777

Please sign in to comment.