We expect to use autocloseable in implementations, make sure this this
reflected upwards.
Change-Id: Ia7e6b27e514cf04e24b0cdf161510a035846ba12
Signed-off-by: Robert Varga <rovarga@cisco.com>
* Interface for emitting {@link NormalizedNode}s, {@link YangInstanceIdentifier}s and {@link PathArgument}s.
*/
@Beta
-public interface NormalizedNodeDataOutput extends DataOutput {
+public interface NormalizedNodeDataOutput extends AutoCloseable, DataOutput {
void writeNormalizedNode(NormalizedNode<?, ?> normalizedNode) throws IOException;
void writePathArgument(PathArgument pathArgument) throws IOException;
void writeYangInstanceIdentifier(YangInstanceIdentifier identifier) throws IOException;
+
+ @Override
+ void close() throws IOException;
}