- if (this == obj) {
- return true;
- }
- if (!(obj instanceof NamespaceStep)) {
- return false;
- }
- final NamespaceStep other = (NamespaceStep) obj;
- return getAxis().equals(other.getAxis()) && namespace.equals(other.namespace)
- && getPredicates().equals(other.getPredicates());
+ return this == obj || obj instanceof NamespaceStep other && getAxis().equals(other.getAxis())
+ && namespace.equals(other.namespace) && getPredicates().equals(other.getPredicates());