Addendum fix for HDFS-9314 to fix compilation error caused by diamond operator.

Change-Id: Ia8b8142c2cd3b5ec413a7da2bf037be64040dc85
This commit is contained in:
Zhe Zhang 2015-12-04 10:57:24 -08:00
parent 4c631e8c73
commit 203c7a648b
1 changed files with 1 additions and 1 deletions

View File

@ -1019,7 +1019,7 @@ public class BlockPlacementPolicyDefault extends BlockPlacementPolicy {
Collection<DatanodeStorageInfo> moreThanOne,
Collection<DatanodeStorageInfo> exactlyOne,
Map<String, List<DatanodeStorageInfo>> rackMap) {
Collection<DatanodeStorageInfo> ret = new ArrayList<>();
Collection<DatanodeStorageInfo> ret = new ArrayList<DatanodeStorageInfo>();
if (rackMap.size() == 2) {
for (List<DatanodeStorageInfo> dsi : rackMap.values()) {
if (dsi.size() >= 2) {