Chia-Ping Tsai created HBASE-20097:
--------------------------------------

             Summary: Remove TableDescriptors#getAll since it just clone the 
returned object from TableDescriptors#getAllDescriptors
                 Key: HBASE-20097
                 URL: https://issues.apache.org/jira/browse/HBASE-20097
             Project: HBase
          Issue Type: Task
            Reporter: Chia-Ping Tsai
            Assignee: Chia-Ping Tsai
             Fix For: 2.0.0


{code:java}
@Override
public Map<String, TableDescriptor> getAll() throws IOException {
  Map<String, TableDescriptor> htds = new TreeMap<>();
  Map<String, TableDescriptor> allDescriptors = getAllDescriptors();
  for (Map.Entry<String, TableDescriptor> entry : allDescriptors
      .entrySet()) {
    htds.put(entry.getKey(), entry.getValue());
  }
  return htds;
}{code}
The returned map from #getAllDescriptors isn't a inner object so doing the 
clone is meaningless.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to