return new Information();
}
+ @SuppressWarnings("rawtypes")
@Override
- public synchronized void setInformation(Dictionary<String, ?> info) {
+ public synchronized void setInformation(Dictionary info) {
map.clear();
addInformation(info);
}
+ @SuppressWarnings({ "rawtypes", "unchecked" })
@Override
- public synchronized void addInformation(Dictionary<String, ?> info) {
+ public synchronized void addInformation(Dictionary info) {
Enumeration<String> e = info.keys();
while (e.hasMoreElements()) {
String key = e.nextElement();
throw new UnsupportedOperationException();
}
+
+
class Information extends Dictionary<String, Object> {
@Override