Details
-
Bug
-
Status: Resolved
-
Resolution: Fixed
-
1.6
-
None
-
None
-
Operating System: other
Platform: All
Description
in batik.css.engine.sac.AbstractElementSelector i found an equals-method like this:
public boolean equals( Object obj ) {
if ( obj == null || !( obj.getClass() != getClass() ))
... other comparisons ...
The double negated class-compare doesnt make sense to me. The intention seems to
be to reject checks against other classes. I 'd do it with instanceof.
The same code exists in AbstractAttributeCondition, AbstractCombinatorCondition,
AbstractDescendantSelector, AbstractSiblingSelector, CSSConditionalSelector,
CSSLangCondition.