遇到个这个提示:Unchecked cast from Iterator to Iterator String
Iterator<String> keys = data.keys();
修改为:
Iterator<?> keys = data.keys();
String name = (String) keys.next();
在获取值的时候才进行类型转换
2023-02-02 07:23:01
遇到个这个提示:Unchecked cast from Iterator to Iterator String
Iterator<String> keys = data.keys();
修改为:
Iterator<?> keys = data.keys();
String name = (String) keys.next();
在获取值的时候才进行类型转换