package org.opendaylight.yangtools.yang.parser.builder.impl;
import static com.google.common.base.Preconditions.checkNotNull;
-
import com.google.common.base.Optional;
import java.net.URI;
import java.util.Date;
* ModuleIdentifier that can be used for indexing/searching by name.
* Name is only non-null attribute.
* Equality check on namespace and revision is only triggered if they are non-null
+ *
+ * @deprecated Pre-Beryllium implementation, scheduled for removal.
*/
+@Deprecated
public class ModuleIdentifierImpl implements ModuleIdentifier {
private final QNameModule qnameModule;
private final String name;
return "ModuleIdentifierImpl{" +
"name='" + name + '\'' +
", namespace=" + getNamespace() +
- ", revision=" + getRevision() +
+ ", revision=" + qnameModule.getFormattedRevision() +
'}';
}
if (this == o) {
return true;
}
- if (o == null || (!(o instanceof ModuleIdentifier))) {
+ if (!(o instanceof ModuleIdentifier)) {
return false;
}