HDFS-5726. Fix compilation error in AbstractINodeDiff for JDK7. Contributed by Jing Zhao.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1556433 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jing Zhao 2014-01-08 03:19:41 +00:00
parent 1be8ee2424
commit 076ecf79ca
2 changed files with 4 additions and 2 deletions

View File

@ -473,6 +473,8 @@ Trunk (Unreleased)
HDFS-5724. modifyCacheDirective logging audit log command wrongly as
addCacheDirective (Uma Maheswara Rao G via Colin Patrick McCabe)
HDFS-5726. Fix compilation error in AbstractINodeDiff for JDK7. (jing9)
Release 2.4.0 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -130,8 +130,8 @@ abstract Quota.Counts destroyDiffAndCollectBlocks(final N currentINode,
@Override
public String toString() {
return getClass().getSimpleName() + ": " + snapshotId + " (post="
+ (posteriorDiff == null? null: posteriorDiff.snapshotId) + ")";
return getClass().getSimpleName() + ": " + this.getSnapshotId() + " (post="
+ (posteriorDiff == null? null: posteriorDiff.getSnapshotId()) + ")";
}
void writeSnapshot(DataOutput out) throws IOException {