java.util.LinkedHashMap



Project neo4j/neo4j in file ...g.neo4j.server.rest.repr.ObjectRepresentation.java (2012-06-12)
@@ -26,7 +26,6 @@ import java.lang.annotation.Target;
 import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
 import java.util.HashMap;
-import java.util.LinkedHashMap;
 import java.util.Map;
 import java.util.concurrent.ConcurrentHashMap;
 
@@ -63,7 +62,7 @@ public abstract class ObjectRepresentation extends MappingRepresentation
                 serialization = serializations.get( type );
                 if ( serialization == null )
                 {
-                    serialization = new LinkedHashMap<String, PropertyGetter>();
+                    serialization = new HashMap<String, PropertyGetter>();
                     for ( Method method : type.getMethods() )
                     {
                         Mapping property = method.getAnnotation( Mapping.class );
Project undertow-io/undertow in file ...core.src.main.java.io.undertow.util.HeaderMap.java (2012-07-31)
@@ -22,7 +22,6 @@ import java.util.ArrayDeque;
 import java.util.Collection;
 import java.util.Deque;
 import java.util.Iterator;
-import java.util.LinkedHashMap;
 import java.util.Locale;
 import java.util.Map;
 
@@ -79,7 +78,7 @@ public final class HeaderMap implements Iterable<String> {
         }
     }
 
-    private final Map<String, HeaderValue> values = new LinkedHashMap<String, HeaderValue>();
+    private final Map<String, HeaderValue> values = new SecureHashMap<String, HeaderValue>();
 
     public Iterator<String> iterator() {
         final Iterator<HeaderValue> iterator = values.values().iterator();
Project Bukkit/Bukkit in file ...g.bukkit.configuration.file.YamlConfiguration.java (2012-01-17)
@@ -4,7 +4,6 @@ import java.io.File;
 import java.io.FileNotFoundException;
 import java.io.IOException;
 import java.io.InputStream;
-import java.util.LinkedHashMap;
 import java.util.Map;
 import java.util.logging.Level;
 
@@ -29,8 +28,6 @@ public class YamlConfiguration extends FileConfiguration {
 
     @Override
     public String saveToString() {
-        Map<String, Object> output = new LinkedHashMap<String, Object>();
-
         yamlOptions.setIndent(options().indent());
         yamlOptions.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
         yamlRepresenter.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
@@ -45,6 +42,7 @@ public class YamlConfiguration extends FileConfiguration {
         return header + dump;
     }
 
+    @SuppressWarnings("unchecked")
     @Override
     public void loadFromString(String contents) throws InvalidConfigurationException {
         if (contents == null) {
@@ -70,6 +68,7 @@ public class YamlConfiguration extends FileConfiguration {
         }
     }
 
+    @SuppressWarnings("unchecked")
     protected void convertMapsToSections(Map<Object, Object> input, ConfigurationSection section) {
         for (Map.Entry<Object, Object> entry : input.entrySet()) {
             String key = entry.getKey().toString();
Project apache/hive in file ...va.org.apache.hadoop.hive.ql.plan.ArchiveWork.java (2013-12-31)
@@ -19,7 +19,6 @@
 package org.apache.hadoop.hive.ql.plan;
 
 import java.io.Serializable;
-import java.util.LinkedHashMap;
 
 /**
  * ArchiveWork.
@@ -28,9 +27,6 @@
 @Explain(displayName = "Map Reduce")
 public class ArchiveWork implements Serializable {
   private static final long serialVersionUID = 1L;
-  private String tableName;
-  private String dbName;
-  private LinkedHashMap<String, String> partSpec;
   private ArchiveActionType type;
 
   public static enum ArchiveActionType {
Project mongodb/mongo-java-driver in file ...701be97e96c/src.main.org.mongodb.WriteConcern.java (2012-12-05)
@@ -21,7 +21,6 @@ import java.io.Serializable;
 import java.lang.reflect.Field;
 import java.lang.reflect.Modifier;
 import java.util.HashMap;
-import java.util.LinkedHashMap;
 import java.util.Map;
 
 /**
@@ -230,8 +229,8 @@ public class WriteConcern implements Serializable {
         _continueOnErrorForInsert = continueOnInsertError;
     }
 
-    public Map<String, Object> getCommand(){
-        Map<String, Object> command = new LinkedHashMap<String, Object>();
+    public MongoDocument getCommand(){
+        MongoDocument command = new MongoDocument();
         command.put("getlasterror", 1);
 
         if (_w instanceof Integer && ((Integer) _w > 0) || (_w instanceof String)){