import static java.util.Objects.requireNonNull;
+import java.io.Serial;
import java.io.Serializable;
import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jdt.annotation.Nullable;
/**
* Extensible enumeration of {@code error-tag} values, as defined in
- * <a href="https://datatracker.ietf.org/doc/html/rfc6241#appendix-A">RFC6241</a>. These values are an extensible
- * enumeration, since YANG does not place restriction on possible values in
- * <a href="https://datatracker.ietf.org/doc/html/rfc8040#section-3.9">RFC8040</a>.
+ * <a href="https://www.rfc-editor.org/rfc/rfc6241#appendix-A">RFC6241</a>. These values are an extensible enumeration,
+ * since YANG does not place restriction on possible values in
+ * <a href="https://www.rfc-editor.org/rfc/rfc8040#section-3.9">RFC8040</a>.
*
* <p>
* Error tag defines overall error semantics. Additional tag-specific information may be associated with a particular
public static final ErrorTag LOCK_DENIED = new ErrorTag("lock-denied");
/**
* {@code unknown-element} {@link ErrorTag}. Covers mechanics specified in
- * <a href="https://datatracker.ietf.org/doc/html/rfc6241#page-80">RFC6241, Appendix A, last item</a>. Note the
+ * <a href="https://www.rfc-editor.org/rfc/rfc6241#page-80">RFC6241, Appendix A, last item</a>. Note the
* specification expressly forbids reporting this tag for NETCONF clients older than {@code :base:1.1}.
*/
public static final ErrorTag MALFORMED_MESSAGE = new ErrorTag("malformed-message");
*/
public static final ErrorTag UNKNOWN_NAMESPACE = new ErrorTag("unknown-namespace");
+ @Serial
private static final long serialVersionUID = 1L;
private final String elementBody;
@Override
public boolean equals(final @Nullable Object obj) {
- return obj == this || obj instanceof ErrorTag && elementBody.equals(((ErrorTag) obj).elementBody);
+ return obj == this || obj instanceof ErrorTag other && elementBody.equals(other.elementBody);
}
@Override
return elementBody;
}
+ @Serial
Object writeReplace() {
return new ETv1(this);
}