HDFS-10725. Caller context should always be constructed by a builder. (Contributed by Mingliang Liu)

This commit is contained in:
Mingliang Liu 2016-08-15 20:13:20 -07:00
parent 5628b36c08
commit 12ad63d723

View File

@ -35,7 +35,7 @@
@InterfaceAudience.LimitedPrivate({"HBase", "HDFS", "Hive", "MapReduce",
"Pig", "YARN"})
@InterfaceStability.Evolving
public class CallerContext {
public final class CallerContext {
public static final Charset SIGNATURE_ENCODING = StandardCharsets.UTF_8;
/** The caller context.
*
@ -54,7 +54,7 @@ public class CallerContext {
*/
private final byte[] signature;
public CallerContext(Builder builder) {
private CallerContext(Builder builder) {
this.context = builder.context;
this.signature = builder.signature;
}