HBASE-6206 Large tests fail with jdk1.7
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1352962 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
877030a5b9
commit
f59ddd78c3
|
@ -135,7 +135,9 @@ public class Get extends OperationWithAttributes
|
||||||
if(set == null) {
|
if(set == null) {
|
||||||
set = new TreeSet<byte []>(Bytes.BYTES_COMPARATOR);
|
set = new TreeSet<byte []>(Bytes.BYTES_COMPARATOR);
|
||||||
}
|
}
|
||||||
set.add(qualifier);
|
if (qualifier != null) {
|
||||||
|
set.add(qualifier);
|
||||||
|
}
|
||||||
familyMap.put(family, set);
|
familyMap.put(family, set);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
|
@ -224,7 +224,9 @@ public class Scan extends OperationWithAttributes implements Writable {
|
||||||
if(set == null) {
|
if(set == null) {
|
||||||
set = new TreeSet<byte []>(Bytes.BYTES_COMPARATOR);
|
set = new TreeSet<byte []>(Bytes.BYTES_COMPARATOR);
|
||||||
}
|
}
|
||||||
set.add(qualifier);
|
if (qualifier != null) {
|
||||||
|
set.add(qualifier);
|
||||||
|
}
|
||||||
familyMap.put(family, set);
|
familyMap.put(family, set);
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|
|
@ -925,7 +925,8 @@ public final class ProtobufUtil {
|
||||||
edit.add(new KeyValue(keyValue.toByteArray()));
|
edit.add(new KeyValue(keyValue.toByteArray()));
|
||||||
}
|
}
|
||||||
if (walEdit.getFamilyScopeCount() > 0) {
|
if (walEdit.getFamilyScopeCount() > 0) {
|
||||||
TreeMap<byte[], Integer> scopes = new TreeMap<byte[], Integer>();
|
TreeMap<byte[], Integer> scopes =
|
||||||
|
new TreeMap<byte[], Integer>(Bytes.BYTES_COMPARATOR);
|
||||||
for (FamilyScope scope: walEdit.getFamilyScopeList()) {
|
for (FamilyScope scope: walEdit.getFamilyScopeList()) {
|
||||||
scopes.put(scope.getFamily().toByteArray(),
|
scopes.put(scope.getFamily().toByteArray(),
|
||||||
Integer.valueOf(scope.getScopeType().ordinal()));
|
Integer.valueOf(scope.getScopeType().ordinal()));
|
||||||
|
|
Loading…
Reference in New Issue