mirror of https://github.com/dspinellis/UMLGraph
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:
parent
d46829bb01
commit
fa40aaf731
|
|
@ -612,7 +612,7 @@ public class Options implements Cloneable, OptionProvider {
|
||||||
InputStream is = new FileInputStream(apiDocMapFileName);
|
InputStream is = new FileInputStream(apiDocMapFileName);
|
||||||
Properties userMap = new Properties();
|
Properties userMap = new Properties();
|
||||||
userMap.load(is);
|
userMap.load(is);
|
||||||
for (Map.Entry mapEntry : userMap.entrySet()) {
|
for (Map.Entry<?, ?> mapEntry : userMap.entrySet()) {
|
||||||
try {
|
try {
|
||||||
Pattern regex = Pattern.compile((String) mapEntry.getKey());
|
Pattern regex = Pattern.compile((String) mapEntry.getKey());
|
||||||
String thisRoot = (String) mapEntry.getValue();
|
String thisRoot = (String) mapEntry.getValue();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue