| commit | 2675a1906d98a0561297c70c07c5c84d97ccbbb6 | [log] [tgz] |
|---|---|---|
| author | Charles Lamb <clamb@apache.org> | Tue Aug 19 20:43:54 2014 +0000 |
| committer | Charles Lamb <clamb@apache.org> | Tue Aug 19 20:43:54 2014 +0000 |
| tree | 0989f388f8ead1bd6b143d2e123b111029e5d001 | |
| parent | 531f3ec12ca41ddd957a607de53bb5086d8a01f0 [diff] |
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
diff --git a/hadoop-common-project/hadoop-common/CHANGES-fs-encryption.txt b/hadoop-common-project/hadoop-common/CHANGES-fs-encryption.txt index 1a4965b..d036e71 100644 --- a/hadoop-common-project/hadoop-common/CHANGES-fs-encryption.txt +++ b/hadoop-common-project/hadoop-common/CHANGES-fs-encryption.txt
@@ -49,6 +49,8 @@ HADOOP-10919. Copy command should preserve raw.* namespace extended attributes. (clamb) + HDFS-6873. Constants in CommandWithDestination should be static. (clamb) + OPTIMIZATIONS BUG FIXES
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/CommandWithDestination.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/CommandWithDestination.java index 1097994..da67f1c 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/CommandWithDestination.java +++ b/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"; /** *