From 203c7a648b8984c5993b929c80cad61415ceff57 Mon Sep 17 00:00:00 2001 From: Zhe Zhang Date: Fri, 4 Dec 2015 10:57:24 -0800 Subject: [PATCH] Addendum fix for HDFS-9314 to fix compilation error caused by diamond operator. Change-Id: Ia8b8142c2cd3b5ec413a7da2bf037be64040dc85 --- .../server/blockmanagement/BlockPlacementPolicyDefault.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockPlacementPolicyDefault.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockPlacementPolicyDefault.java index 4858bb54349..d954566539e 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockPlacementPolicyDefault.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockPlacementPolicyDefault.java @@ -1019,7 +1019,7 @@ public class BlockPlacementPolicyDefault extends BlockPlacementPolicy { Collection moreThanOne, Collection exactlyOne, Map> rackMap) { - Collection ret = new ArrayList<>(); + Collection ret = new ArrayList(); if (rackMap.size() == 2) { for (List dsi : rackMap.values()) { if (dsi.size() >= 2) {