Commit 9cf3c795 authored by Jonathan CLARKE's avatar Jonathan CLARKE
Browse files

Avoid using implementation types like 'HashMap'; use the interface instead

parent fb5f12a9
...@@ -48,6 +48,7 @@ package org.lsc.jndi; ...@@ -48,6 +48,7 @@ package org.lsc.jndi;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map;
import javax.naming.NamingEnumeration; import javax.naming.NamingEnumeration;
import javax.naming.NamingException; import javax.naming.NamingException;
...@@ -166,7 +167,7 @@ public class JndiModifications { ...@@ -166,7 +167,7 @@ public class JndiModifications {
* *
* @return the hash * @return the hash
*/ */
public HashMap<String, List<String>> getModificationsItemsByHash() { public Map<String, List<String>> getModificationsItemsByHash() {
HashMap<String, List<String>> result = new HashMap<String, List<String>>(); HashMap<String, List<String>> result = new HashMap<String, List<String>>();
List<ModificationItem> mi = this.getModificationItems(); List<ModificationItem> mi = this.getModificationItems();
......
...@@ -50,6 +50,7 @@ import java.text.ParseException; ...@@ -50,6 +50,7 @@ import java.text.ParseException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map;
/** /**
* Utility class to manage specific entries for a Microsoft ActiveDirectory * Utility class to manage specific entries for a Microsoft ActiveDirectory
...@@ -178,8 +179,8 @@ public class AD { ...@@ -178,8 +179,8 @@ public class AD {
} }
/* The Hash of values to set or to unset */ /* The Hash of values to set or to unset */
private static final HashMap<Integer, Integer> setHexValue = new HashMap<Integer, Integer>(); private static final Map<Integer, Integer> setHexValue = new HashMap<Integer, Integer>();
private static final HashMap<Integer, Integer> unsetHexValue = new HashMap<Integer, Integer>(); private static final Map<Integer, Integer> unsetHexValue = new HashMap<Integer, Integer>();
/** /**
* Internal values in the AD in Hex * Internal values in the AD in Hex
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment