HDFS-4294. Backwards compatibility is not maintained for TestVolumeId. Contributed by Ivan A. Veselovsky and Robert Parker.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1419877 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f38fdbf648
commit
29ad19e950
|
@ -423,6 +423,9 @@ Release 2.0.3-alpha - Unreleased
|
||||||
HDFS-4017. Unclosed FileInputStream in GetJournalEditServlet
|
HDFS-4017. Unclosed FileInputStream in GetJournalEditServlet
|
||||||
(Chao Shi via todd)
|
(Chao Shi via todd)
|
||||||
|
|
||||||
|
HDFS-4294. Backwards compatibility is not maintained for TestVolumeId.
|
||||||
|
(Ivan A. Veselovsky and Robert Parker via atm)
|
||||||
|
|
||||||
Release 2.0.2-alpha - 2012-09-07
|
Release 2.0.2-alpha - 2012-09-07
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -51,7 +51,7 @@ public class TestVolumeId {
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
private <T> void testEq(final boolean eq, Comparable<? super T> id1, Comparable<? super T> id2) {
|
private <T> void testEq(final boolean eq, Comparable<T> id1, Comparable<T> id2) {
|
||||||
final int h1 = id1.hashCode();
|
final int h1 = id1.hashCode();
|
||||||
final int h2 = id2.hashCode();
|
final int h2 = id2.hashCode();
|
||||||
|
|
||||||
|
@ -99,8 +99,8 @@ public class TestVolumeId {
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
private <T> void testEqMany(final boolean eq, Comparable<? super T>... volumeIds) {
|
private <T> void testEqMany(final boolean eq, Comparable<T>... volumeIds) {
|
||||||
Comparable<? super T> vidNext;
|
Comparable<T> vidNext;
|
||||||
int sum = 0;
|
int sum = 0;
|
||||||
for (int i=0; i<volumeIds.length; i++) {
|
for (int i=0; i<volumeIds.length; i++) {
|
||||||
if (i == volumeIds.length - 1) {
|
if (i == volumeIds.length - 1) {
|
||||||
|
|
Loading…
Reference in New Issue