From cec1d43db026e66a9e84b5c3e8476dfd33f17ecb Mon Sep 17 00:00:00 2001 From: Tsuyoshi Ozawa Date: Wed, 15 Jul 2015 14:18:12 +0900 Subject: [PATCH] HADOOP-12153. ByteBufferReadable doesn't declare @InterfaceAudience and @InterfaceStability. Contributed by Brahma Reddy Battula. --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../main/java/org/apache/hadoop/fs/ByteBufferReadable.java | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index a807d12ce1f..3d641560f4c 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -697,6 +697,9 @@ Release 2.8.0 - UNRELEASED HADOOP-12211. Collect disk usage on the node (Robert Grandl via cdouglas) + HADOOP-12153. ByteBufferReadable doesn't declare @InterfaceAudience and + @InterfaceStability. (Brahma Reddy Battula via ozawa) + OPTIMIZATIONS HADOOP-11785. Reduce the number of listStatus operation in distcp diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ByteBufferReadable.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ByteBufferReadable.java index aa6e85ea889..20f7224c22c 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ByteBufferReadable.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ByteBufferReadable.java @@ -19,11 +19,15 @@ package org.apache.hadoop.fs; import java.io.IOException; import java.nio.ByteBuffer; +import org.apache.hadoop.classification.InterfaceAudience; +import org.apache.hadoop.classification.InterfaceStability; /** * Implementers of this interface provide a read API that writes to a * ByteBuffer, not a byte[]. */ +@InterfaceAudience.Public +@InterfaceStability.Evolving public interface ByteBufferReadable { /** * Reads up to buf.remaining() bytes into buf. Callers should use