import com.google.common.base.Optional;
import com.google.common.base.Preconditions;
+import java.util.Objects;
import org.opendaylight.yangtools.yang.model.api.MustDefinition;
import org.opendaylight.yangtools.yang.model.api.RevisionAwareXPath;
public int hashCode() {
final int prime = 31;
int result = 1;
- result = prime * result + ((mustStr == null) ? 0 : mustStr.hashCode());
- result = prime * result + ((description == null) ? 0 : description.hashCode());
- result = prime * result + ((reference == null) ? 0 : reference.hashCode());
+ result = prime * result + Objects.hashCode(mustStr);
+ result = prime * result + Objects.hashCode(description);
+ result = prime * result + Objects.hashCode(reference);
return result;
}