We have a number of methods deprecated, but not marked for removal.
Update them along with the release where they were deprecated.
Change-Id: I20d56689d1c0349dc8f41b823d293576f40b5bb7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
PathArgument readPathArgument() throws IOException;
PathArgument readPathArgument() throws IOException;
- @Deprecated(forRemoval = true)
+ @Deprecated(since = "5.0.0", forRemoval = true)
SchemaPath readSchemaPath() throws IOException;
SchemaNodeIdentifier readSchemaNodeIdentifier() throws IOException;
SchemaPath readSchemaPath() throws IOException;
SchemaNodeIdentifier readSchemaNodeIdentifier() throws IOException;
* @return a new {@link NormalizedNodeDataInput} instance
* @deprecated Use {@link #newDataInput(DataInput)} instead.
*/
* @return a new {@link NormalizedNodeDataInput} instance
* @deprecated Use {@link #newDataInput(DataInput)} instead.
*/
- @Deprecated(forRemoval = true)
+ @Deprecated(since = "5.0.0", forRemoval = true)
static @NonNull NormalizedNodeDataInput newDataInputWithoutValidation(final @NonNull DataInput input) {
return new VersionedNormalizedNodeDataInput(input);
}
static @NonNull NormalizedNodeDataInput newDataInputWithoutValidation(final @NonNull DataInput input) {
return new VersionedNormalizedNodeDataInput(input);
}
void writeYangInstanceIdentifier(YangInstanceIdentifier identifier) throws IOException;
void writeYangInstanceIdentifier(YangInstanceIdentifier identifier) throws IOException;
- @Deprecated(forRemoval = true)
+ @Deprecated(since = "5.0.0", forRemoval = true)
void writeSchemaPath(SchemaPath path) throws IOException;
void writeSchemaNodeIdentifier(SchemaNodeIdentifier path) throws IOException;
void writeSchemaPath(SchemaPath path) throws IOException;
void writeSchemaNodeIdentifier(SchemaNodeIdentifier path) throws IOException;
* @param path root path
* @deprecated Use either one of the alternative constructors instead.
*/
* @param path root path
* @deprecated Use either one of the alternative constructors instead.
*/
- @Deprecated(since = "7.0.11")
+ @Deprecated(since = "7.0.11", forRemoval = true)
public SchemaOrderedNormalizedNodeWriter(final NormalizedNodeStreamWriter writer,
final EffectiveModelContext schemaContext, final SchemaPath path) {
this(writer, SchemaInferenceStack.ofSchemaPath(schemaContext, path));
public SchemaOrderedNormalizedNodeWriter(final NormalizedNodeStreamWriter writer,
final EffectiveModelContext schemaContext, final SchemaPath path) {
this(writer, SchemaInferenceStack.ofSchemaPath(schemaContext, path));
* @throws NullPointerException if any argument is null
* @throws IllegalArgumentException if {@code path} does not point to a valid root
*/
* @throws NullPointerException if any argument is null
* @throws IllegalArgumentException if {@code path} does not point to a valid root
*/
+ @Deprecated(since = "7.0.0", forRemoval = true)
public static @NonNull NormalizedNodeStreamWriterStack of(final EffectiveModelContext context,
final SchemaPath path) {
return new NormalizedNodeStreamWriterStack(SchemaInferenceStack.ofSchemaPath(context, path));
public static @NonNull NormalizedNodeStreamWriterStack of(final EffectiveModelContext context,
final SchemaPath path) {
return new NormalizedNodeStreamWriterStack(SchemaInferenceStack.ofSchemaPath(context, path));
* @throws IllegalArgumentException if {@code path} cannot be resolved in the effective model or if it is not an
* absolute path.
*/
* @throws IllegalArgumentException if {@code path} cannot be resolved in the effective model or if it is not an
* absolute path.
*/
+ @Deprecated(since = "7.0.0", forRemoval = true)
public static @NonNull SchemaInferenceStack ofInstantiatedPath(final EffectiveModelContext effectiveModel,
final SchemaPath path) {
checkArgument(path.isAbsolute(), "Cannot operate on relative path %s", path);
public static @NonNull SchemaInferenceStack ofInstantiatedPath(final EffectiveModelContext effectiveModel,
final SchemaPath path) {
checkArgument(path.isAbsolute(), "Cannot operate on relative path %s", path);
* @throws IllegalArgumentException if {@code path} cannot be resolved in the effective model or if it is not an
* absolute path.
*/
* @throws IllegalArgumentException if {@code path} cannot be resolved in the effective model or if it is not an
* absolute path.
*/
+ @Deprecated(since = "7.0.2", forRemoval = true)
public static @NonNull SchemaInferenceStack ofSchemaPath(final EffectiveModelContext effectiveModel,
final SchemaPath path) {
checkArgument(path.isAbsolute(), "Cannot operate on relative path %s", path);
public static @NonNull SchemaInferenceStack ofSchemaPath(final EffectiveModelContext effectiveModel,
final SchemaPath path) {
checkArgument(path.isAbsolute(), "Cannot operate on relative path %s", path);
* @throws IllegalStateException if current state is not instantiated
* @deprecated This method is meant only for interoperation with SchemaPath-based APIs.
*/
* @throws IllegalStateException if current state is not instantiated
* @deprecated This method is meant only for interoperation with SchemaPath-based APIs.
*/
+ @Deprecated(since = "5.0.0", forRemoval = true)
public @NonNull SchemaPath toSchemaPath() {
return SchemaPath.create(simplePathFromRoot(), true);
}
public @NonNull SchemaPath toSchemaPath() {
return SchemaPath.create(simplePathFromRoot(), true);
}
* {@code toSchemaPath().getPathFromRoot().iterator()}.
*
* @return An unmodifiable iterator
* {@code toSchemaPath().getPathFromRoot().iterator()}.
*
* @return An unmodifiable iterator
+ * @deprecated Use {@link #toSchemaTreeInference()} instead.
+ @Deprecated(since = "5.0.0", forRemoval = true)
public @NonNull Iterator<QName> schemaPathIterator() {
return Iterators.unmodifiableIterator(simplePathFromRoot().iterator());
}
public @NonNull Iterator<QName> schemaPathIterator() {
return Iterators.unmodifiableIterator(simplePathFromRoot().iterator());
}