Skip to content

Commit

Permalink
Allow the 'matches' method to be overridden so down-stream implementa…
Browse files Browse the repository at this point in the history
…tions can provide a more efficient algorithm (recursive vs itterable).
  • Loading branch information
johnmay committed Feb 28, 2018
1 parent 8e1e3ef commit 892b17f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public abstract class Pattern {
* @param target the container to search for the pattern in
* @return the mapping from the pattern to the target
*/
public final boolean matches(IAtomContainer target) {
public boolean matches(IAtomContainer target) {
return match(target).length > 0;
}

Expand Down

0 comments on commit 892b17f

Please sign in to comment.