HBASE-9600 TestColumnSchemaModel and TestTableSchemaModel test cases are failing with IBM IBM Java 6
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1525179 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3bf837c884
commit
a72066f13f
|
@ -20,7 +20,7 @@
|
|||
package org.apache.hadoop.hbase.rest.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAnyAttribute;
|
||||
|
@ -57,7 +57,7 @@ public class ColumnSchemaModel implements Serializable {
|
|||
private static QName VERSIONS = new QName(HConstants.VERSIONS);
|
||||
|
||||
private String name;
|
||||
private Map<QName,Object> attrs = new HashMap<QName,Object>();
|
||||
private Map<QName,Object> attrs = new LinkedHashMap<QName,Object>();
|
||||
|
||||
/**
|
||||
* Default constructor
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.apache.hadoop.hbase.rest.model;
|
|||
import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
@ -74,7 +74,7 @@ public class TableSchemaModel implements Serializable, ProtobufMessageHandler {
|
|||
new QName(HColumnDescriptor.COMPRESSION);
|
||||
|
||||
private String name;
|
||||
private Map<QName,Object> attrs = new HashMap<QName,Object>();
|
||||
private Map<QName,Object> attrs = new LinkedHashMap<QName,Object>();
|
||||
private List<ColumnSchemaModel> columns = new ArrayList<ColumnSchemaModel>();
|
||||
|
||||
/**
|
||||
|
|
|
@ -59,13 +59,13 @@ public class TestColumnSchemaModel extends TestModelBase<ColumnSchemaModel> {
|
|||
protected ColumnSchemaModel buildTestModel() {
|
||||
ColumnSchemaModel model = new ColumnSchemaModel();
|
||||
model.setName(COLUMN_NAME);
|
||||
model.__setBlockcache(BLOCKCACHE);
|
||||
model.__setBlocksize(BLOCKSIZE);
|
||||
model.__setBloomfilter(BLOOMFILTER);
|
||||
model.__setBlockcache(BLOCKCACHE);
|
||||
model.__setCompression(COMPRESSION);
|
||||
model.__setInMemory(IN_MEMORY);
|
||||
model.__setTTL(TTL);
|
||||
model.__setVersions(VERSIONS);
|
||||
model.__setTTL(TTL);
|
||||
model.__setInMemory(IN_MEMORY);
|
||||
return model;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue