From 101962e598d698a6845f79131b2b79d1621213fc Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 27 Oct 2011 23:50:11 +0000 Subject: [PATCH] HADOOP-7778. FindBugs warning in Token.getKind(). git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1190095 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-common-project/hadoop-common/CHANGES.txt | 4 +++- .../src/main/java/org/apache/hadoop/security/token/Token.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index cafd044c3f..cd737733aa 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -762,7 +762,9 @@ Release 0.23.0 - Unreleased Eagles via acmurthy) HADOOP-7764. Allow HttpServer to set both ACL list and path spec filters. - (Jonathan Eagles via acmurthy) + (Jonathan Eagles via acmurthy) + + HADOOP-7778. FindBugs warning in Token.getKind(). (tomwhite) Release 0.22.0 - Unreleased diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java index 89652fc1fa..e95ade860b 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java @@ -119,7 +119,7 @@ public byte[] getPassword() { * Get the token kind * @return the kind of the token */ - public Text getKind() { + public synchronized Text getKind() { return kind; }