diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 7ac3aeeace5..fbf93bc6a38 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -84,6 +84,9 @@ Release 2.4.0 - UNRELEASED HDFS-5879. Some TestHftpFileSystem tests do not close streams. (Gera Shegalov via suresh) + HDFS-5938. Make BlockReaderFactory#BlockReaderPeer a static class to avoid + a findbugs warning. (cmccabe) + Release 2.3.1 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/BlockReaderFactory.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/BlockReaderFactory.java index c6af5e82c36..f7eb3c75051 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/BlockReaderFactory.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/BlockReaderFactory.java @@ -663,7 +663,7 @@ public class BlockReaderFactory implements ShortCircuitReplicaCreator { return null; } - private class BlockReaderPeer { + private static class BlockReaderPeer { final Peer peer; final boolean fromCache;