com.google.common.collect.Maps



Project amplab/tachyon in file ...d/core.src.main.java.tachyon.master.Operation.java (2014-07-06)
@@ -19,7 +19,6 @@ import java.util.Map;
 import com.fasterxml.jackson.annotation.JsonCreator;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.google.common.base.Objects;
-import com.google.common.collect.Maps;
 
 /**
  * Each entry in the EditLog is represented as a single Operation, which is serialized as JSON.
@@ -29,7 +28,6 @@ class Operation extends JsonObject {
   // NB: These type names are used in the serialized JSON. They should be concise but readable.
   public OperationType type;
   public long transId;
-  public Map<String, Object> parameters = Maps.newHashMap();
 
   public Operation(OperationType type, long transId) {
     this.type = type;
Project druid-io/druid in file ...ry.datasourcemetadata.DataSourceMetadataQuery.java (2015-02-03)
@@ -22,7 +22,6 @@ package io.druid.query.datasourcemetadata;
 import com.fasterxml.jackson.annotation.JsonCreator;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.google.common.collect.Lists;
-import com.google.common.collect.Maps;
 import io.druid.common.utils.JodaUtils;
 import io.druid.query.BaseQuery;
 import io.druid.query.DataSource;
@@ -45,9 +44,6 @@ public class DataSourceMetadataQuery extends BaseQuery<Result<DataSourceMetadata
       JodaUtils.MIN_INSTANT, JodaUtils.MAX_INSTANT
   );
 
-  public static String MAX_INGESTED_EVENT_TIME = "maxIngestedEventTime";
-
-
   @JsonCreator
   public DataSourceMetadataQuery(
       @JsonProperty("dataSource") DataSource dataSource,
Project metamx/druid in file ...ry.datasourcemetadata.DataSourceMetadataQuery.java (2015-02-03)
@@ -22,7 +22,6 @@ package io.druid.query.datasourcemetadata;
 import com.fasterxml.jackson.annotation.JsonCreator;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.google.common.collect.Lists;
-import com.google.common.collect.Maps;
 import io.druid.common.utils.JodaUtils;
 import io.druid.query.BaseQuery;
 import io.druid.query.DataSource;
@@ -45,9 +44,6 @@ public class DataSourceMetadataQuery extends BaseQuery<Result<DataSourceMetadata
       JodaUtils.MIN_INSTANT, JodaUtils.MAX_INSTANT
   );
 
-  public static String MAX_INGESTED_EVENT_TIME = "maxIngestedEventTime";
-
-
   @JsonCreator
   public DataSourceMetadataQuery(
       @JsonProperty("dataSource") DataSource dataSource,
Project Graylog2/graylog2-server in file .../src.test.java.org.graylog2.ConfigurationTest.java (2012-04-30)
@@ -15,6 +15,7 @@ import com.github.joschi.jadconfig.JadConfig;
 import com.github.joschi.jadconfig.RepositoryException;
 import com.github.joschi.jadconfig.ValidationException;
 import com.github.joschi.jadconfig.repositories.InMemoryRepository;
+import com.google.common.collect.Maps;
 
 /**
  * Unit tests for {@link Configuration} class
@@ -29,7 +30,7 @@ public class ConfigurationTest {
     @Before
     public void setUp() {
 
-        validProperties = new HashMap<String, String>();
+        validProperties = Maps.newHashMap();
 
         try {
             tempFile = File.createTempFile("graylog", null);
Project Graylog2/graylog2-server in file ....graylog2.streams.matchers.MessageMatcherTest.java (2012-04-30)
@@ -23,6 +23,8 @@ package org.graylog2.streams.matchers;
 import org.graylog2.logmessage.LogMessage;
 import java.util.Map;
 import org.bson.types.ObjectId;
+
+import com.google.common.collect.Maps;
 import com.mongodb.BasicDBObject;
 import java.util.HashMap;
 import org.graylog2.streams.StreamRule;
@@ -80,7 +82,7 @@ public class MessageMatcherTest {
      */
     @Test
     public void testSpecificMatches() {
-        Map<String, String> cases = new HashMap<String, String>();
+        Map<String, String> cases = Maps.newHashMap();
 
         cases.put("su: (to myuser) root on none", "(su|sudo).+"); // http://jira.graylog2.org/browse/SERVER-11
         cases.put("MyHostname su: (to myuser) root on none\n", ".+su.+"); // http://jira.graylog2.org/browse/SERVER-11