com.google.common.collect.Mapsjava.util.HashMap



Project Athou/commafeed in file ...ava.com.commafeed.frontend.resource.AdminREST.java (2014-12-12)
@@ -2,6 +2,7 @@ package com.commafeed.frontend.resource;
 
 import io.dropwizard.hibernate.UnitOfWork;
 
+import java.util.HashMap;
 import java.util.Map;
 import java.util.Set;
 
@@ -36,7 +37,6 @@ import com.commafeed.frontend.auth.SecurityCheck;
 import com.commafeed.frontend.model.UserModel;
 import com.commafeed.frontend.model.request.IDRequest;
 import com.google.common.base.Preconditions;
-import com.google.common.collect.Maps;
 import com.google.common.collect.Sets;
 import com.wordnik.swagger.annotations.Api;
 import com.wordnik.swagger.annotations.ApiOperation;
@@ -136,7 +136,7 @@ public class AdminREST {
 	@UnitOfWork
 	@ApiOperation(value = "Get all users", notes = "Get all users", response = UserModel.class, responseContainer = "List")
 	public Response getUsers(@SecurityCheck(Role.ADMIN) User user) {
-		Map<Long, UserModel> users = Maps.newHashMap();
+		Map<Long, UserModel> users = new HashMap<>();
 		for (UserRole role : userRoleDAO.findAll()) {
 			User u = role.getUser();
 			Long key = u.getId();
Project Instagram/ig-json-parser in file ...am.common.json.annotation.processor.StrFormat.java (2014-09-05)
@@ -2,9 +2,9 @@
 
 package com.instagram.common.json.annotation.processor;
 
+import java.util.HashMap;
 import java.util.Map;
 
-import com.google.common.collect.Maps;
 import org.apache.commons.lang3.text.StrSubstitutor;
 
 /**
@@ -16,7 +16,7 @@ class StrFormat {
 
   StrFormat(String formatString) {
     mFormatString = formatString;
-    mInternalMap = Maps.newHashMap();
+    mInternalMap = new HashMap<String, String>();
   }
 
   StrFormat addParam(String variableName, String replacementText) {
Project Instagram/ig-json-parser in file ...ommon.json.annotation.util.ProcessorClassData.java (2014-09-05)
@@ -2,9 +2,9 @@
 
 package com.instagram.common.json.annotation.util;
 
-import com.google.common.collect.Maps;
-
 import javax.annotation.processing.Messager;
+
+import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Map;
 
@@ -50,7 +50,7 @@ abstract public class ProcessorClassData<AnnotationKeyType, AnnotationRecordType
     mClassName = className;
     mInjectedClassName = injectedClassName;
     mFactory = factory;
-    mData = Maps.newHashMap();
+    mData = new HashMap<AnnotationKeyType, AnnotationRecordType>();
   }
 
   /**
Project JetBrains/intellij-community in file ...ellij.execution.configurations.PtyCommandLine.java (2014-10-31)
@@ -15,7 +15,6 @@
  */
 package com.intellij.execution.configurations;
 
-import com.google.common.collect.Maps;
 import com.intellij.openapi.diagnostic.Logger;
 import com.intellij.openapi.util.SystemInfo;
 import com.intellij.util.ArrayUtil;
@@ -24,6 +23,7 @@ import org.jetbrains.annotations.NotNull;
 
 import java.io.File;
 import java.io.IOException;
+import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
@@ -54,7 +54,7 @@ public class PtyCommandLine extends GeneralCommandLine {
 
   @NotNull
   public Process startProcessWithPty(@NotNull List<String> commands, boolean console) throws IOException {
-    Map<String, String> env = Maps.newHashMap();
+    Map<String, String> env = new HashMap<String, String>();
     setupEnvironment(env);
 
     if (isRedirectErrorStream()) {
Project JetBrains/kotlin in file ...brains.jet.lang.resolve.java.AsmTypeConstants.java (2013-08-16)
@@ -16,14 +16,14 @@
 
 package org.jetbrains.jet.lang.resolve.java;
 
-import com.google.common.collect.Maps;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.asm4.Type;
 
+import java.util.HashMap;
 import java.util.Map;
 
 public class AsmTypeConstants {
-    private static final Map<Class<?>, Type> TYPES_MAP = Maps.newHashMap();
+    private static final Map<Class<?>, Type> TYPES_MAP = new HashMap<Class<?>, Type>();
 
     public static final Type OBJECT_TYPE = getType(Object.class);
     public static final Type JAVA_STRING_TYPE = getType(String.class);