Browse Source

HDFS-6873. Constants in CommandWithDestination should be static. (clamb)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/fs-encryption@1618975 13f79535-47bb-0310-9956-ffa450edef68
Charles Lamb 10 years ago
parent
commit
a4ee77b65f

+ 2 - 0
hadoop-common-project/hadoop-common/CHANGES-fs-encryption.txt

@@ -49,6 +49,8 @@ fs-encryption (Unreleased)
     HADOOP-10919. Copy command should preserve raw.* namespace
     extended attributes. (clamb)
 
+    HDFS-6873. Constants in CommandWithDestination should be static. (clamb)
+
   OPTIMIZATIONS
 
   BUG FIXES

+ 2 - 2
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/CommandWithDestination.java

@@ -61,12 +61,12 @@ abstract class CommandWithDestination extends FsCommand {
    * The name of the raw xattr namespace. It would be nice to use
    * XAttr.RAW.name() but we can't reference the hadoop-hdfs project.
    */
-  private final String RAW = "raw.";
+  private static final String RAW = "raw.";
 
   /**
    * The name of the reserved raw directory.
    */
-  private final String RESERVED_RAW = "/.reserved/raw";
+  private static final String RESERVED_RAW = "/.reserved/raw";
 
   /**
    *