You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by sa...@apache.org on 2017/03/09 21:55:05 UTC

phoenix git commit: PHOENIX-3726 Addendum to use modifiable list

Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-0.98 c6a7a7171 -> 91f6672ba


PHOENIX-3726 Addendum to use modifiable list


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/91f6672b
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/91f6672b
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/91f6672b

Branch: refs/heads/4.x-HBase-0.98
Commit: 91f6672ba15603c4b2fec3106d91f56fdaae5b24
Parents: c6a7a71
Author: Samarth <sa...@salesforce.com>
Authored: Thu Mar 9 13:54:59 2017 -0800
Committer: Samarth <sa...@salesforce.com>
Committed: Thu Mar 9 13:54:59 2017 -0800

----------------------------------------------------------------------
 .../org/apache/phoenix/query/ConnectionQueryServicesImpl.java    | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/91f6672b/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java b/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
index b113ad9..14e31d2 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
@@ -68,7 +68,6 @@ import java.sql.ResultSetMetaData;
 import java.sql.SQLException;
 import java.sql.Types;
 import java.util.ArrayList;
-import java.util.Arrays;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.HashMap;
@@ -3083,8 +3082,7 @@ public class ConnectionQueryServicesImpl extends DelegateQueryServices implement
         try (HBaseAdmin admin = getAdmin()) {
             ensureNamespaceCreated(QueryConstants.SYSTEM_SCHEMA_NAME);
             
-             List<String> tableNames = Arrays
-                    .asList(admin.getTableNames(QueryConstants.SYSTEM_SCHEMA_NAME + "\\..*"));
+            List<String> tableNames = Lists.newArrayList(admin.getTableNames(QueryConstants.SYSTEM_SCHEMA_NAME + "\\..*"));
             if (tableNames.size() == 0) { return; }
             if (tableNames.size() > 5) {
                 logger.warn("Expected 5 system tables but found " + tableNames.size() + ":" + tableNames);