hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-17404 Replace explicit type with diamond operator in hbase-annotations (Jan Hentschel)
Date Sat, 21 Jan 2017 07:04:02 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 55a1aa1e7 -> fb8f9247d


HBASE-17404 Replace explicit type with diamond operator in hbase-annotations (Jan Hentschel)


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

Branch: refs/heads/master
Commit: fb8f9247d0262f9875fee954370fd807dc786bfc
Parents: 55a1aa1
Author: Michael Stack <stack@apache.org>
Authored: Fri Jan 20 23:03:56 2017 -0800
Committer: Michael Stack <stack@apache.org>
Committed: Fri Jan 20 23:03:56 2017 -0800

----------------------------------------------------------------------
 .../hadoop/hbase/classification/tools/RootDocProcessor.java     | 5 ++---
 .../hadoop/hbase/classification/tools/StabilityOptions.java     | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/fb8f9247/hbase-annotations/src/main/java/org/apache/hadoop/hbase/classification/tools/RootDocProcessor.java
----------------------------------------------------------------------
diff --git a/hbase-annotations/src/main/java/org/apache/hadoop/hbase/classification/tools/RootDocProcessor.java
b/hbase-annotations/src/main/java/org/apache/hadoop/hbase/classification/tools/RootDocProcessor.java
index 97d9343..6cc7551 100644
--- a/hbase-annotations/src/main/java/org/apache/hadoop/hbase/classification/tools/RootDocProcessor.java
+++ b/hbase-annotations/src/main/java/org/apache/hadoop/hbase/classification/tools/RootDocProcessor.java
@@ -79,8 +79,7 @@ final class RootDocProcessor {
     return obj;
   }
 
-  private static Map<Object, Object> proxies =
-    new WeakHashMap<Object, Object>();
+  private static Map<Object, Object> proxies = new WeakHashMap<>();
 
   private static Object getProxy(Object obj) {
     Object proxy = proxies.get(obj);
@@ -207,7 +206,7 @@ final class RootDocProcessor {
       if (array == null || array.length == 0) {
         return array;
       }
-      List<Object> list = new ArrayList<Object>(array.length);
+      List<Object> list = new ArrayList<>(array.length);
       for (Doc entry : array) {
         if (!exclude(entry)) {
           list.add(process(entry, componentType));

http://git-wip-us.apache.org/repos/asf/hbase/blob/fb8f9247/hbase-annotations/src/main/java/org/apache/hadoop/hbase/classification/tools/StabilityOptions.java
----------------------------------------------------------------------
diff --git a/hbase-annotations/src/main/java/org/apache/hadoop/hbase/classification/tools/StabilityOptions.java
b/hbase-annotations/src/main/java/org/apache/hadoop/hbase/classification/tools/StabilityOptions.java
index 6cb03a5..7454436 100644
--- a/hbase-annotations/src/main/java/org/apache/hadoop/hbase/classification/tools/StabilityOptions.java
+++ b/hbase-annotations/src/main/java/org/apache/hadoop/hbase/classification/tools/StabilityOptions.java
@@ -53,7 +53,7 @@ final class StabilityOptions {
   }
 
   public static String[][] filterOptions(String[][] options) {
-    List<String[]> optionsList = new ArrayList<String[]>(options.length);
+    List<String[]> optionsList = new ArrayList<>();
     for (int i = 0; i < options.length; i++) {
       if (!options[i][0].equalsIgnoreCase(UNSTABLE_OPTION)
           && !options[i][0].equalsIgnoreCase(EVOLVING_OPTION)


Mime
View raw message