BAEL-5351: Moved to core-java-collections-4

This commit is contained in:
Mayank Agarwal 2022-02-13 16:43:59 +05:30
parent b35d0ea7c4
commit 7995f7d7c5
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
package com.baeldung.map.initialize; package com.baeldung.maps.initialize;
import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps; import com.google.common.collect.Maps;
@ -33,7 +33,8 @@ public class EmptyMapInitializer {
} }
public Map createGenericEmptyMapUsingMapsObject() { public Map createGenericEmptyMapUsingMapsObject() {
return Maps.<String, Integer>newHashMap(); Map genericEmptyMap = Maps.<String, Integer>newHashMap();
return genericEmptyMap;
} }
public static Map<String, String> createMapUsingGuava() { public static Map<String, String> createMapUsingGuava() {

View File

@ -1,4 +1,4 @@
package com.baeldung.map.initialize; package com.baeldung.maps.initialize;
import java.util.Map; import java.util.Map;
import org.junit.Test; import org.junit.Test;