Get rid of Java generics warning

Casts are still needed, because Properties extends
Hashtable<Object, Object> instead of Hashtable<String, String>.
This commit is contained in:
Diomidis Spinellis 2014-10-28 17:04:59 +02:00
parent d46829bb01
commit fa40aaf731
1 changed files with 1 additions and 1 deletions

View File

@ -612,7 +612,7 @@ public class Options implements Cloneable, OptionProvider {
InputStream is = new FileInputStream(apiDocMapFileName);
Properties userMap = new Properties();
userMap.load(is);
for (Map.Entry mapEntry : userMap.entrySet()) {
for (Map.Entry<?, ?> mapEntry : userMap.entrySet()) {
try {
Pattern regex = Pattern.compile((String) mapEntry.getKey());
String thisRoot = (String) mapEntry.getValue();