From: <dj...@us...> - 2007-10-04 21:08:15
|
Revision: 9015 http://cdk.svn.sourceforge.net/cdk/?rev=9015&view=rev Author: djiao Date: 2007-10-04 14:08:13 -0700 (Thu, 04 Oct 2007) Log Message: ----------- Fixed a bug reported in RecursiveTest.testRecursiveSmarts25 - where the Total H atom count doesn't match correctly. Modified Paths: -------------- trunk/cdk/src/org/openscience/cdk/isomorphism/matchers/smarts/TotalHCountAtom.java Modified: trunk/cdk/src/org/openscience/cdk/isomorphism/matchers/smarts/TotalHCountAtom.java =================================================================== --- trunk/cdk/src/org/openscience/cdk/isomorphism/matchers/smarts/TotalHCountAtom.java 2007-10-04 19:22:26 UTC (rev 9014) +++ trunk/cdk/src/org/openscience/cdk/isomorphism/matchers/smarts/TotalHCountAtom.java 2007-10-04 21:08:13 UTC (rev 9015) @@ -97,14 +97,8 @@ } private boolean nonDefaultCheck(IAtom atom) { - if (getHH(atom) != 0) { - if (getHH(atom) == this.hCount) { - return true; - } - } else { - if (getHH(atom) == 0) { - return true; - } + if (getHH(atom) == this.hCount) { + return true; } return false; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |