Map<String, RuntimeMonitor.ProcessCHeapInfo> gap = rt.getCHeap();
Iterator it = gap.entrySet().iterator();
就这么段代码,为什么第2行那里仍旧会提示 Iterator is a raw type.References to generic type Iterator<E>should be parameterized
...至今对泛形一头雾水,请各位大大指点一二
...全文
59013打赏收藏
泛型相关的问题
Map gap = rt.getCHeap(); Iterator it = gap.entrySet().iterator(); 就这么段代码,为什么第2行那里仍旧会提示 Iterator is a raw type.References to generic type Iteratorshould be parameterized ...至今对泛形一头雾水,请各位大大指点一二
Multiple markers at this line
- Type mismatch: cannot convert from
Iterator<Map.Entry<String,RuntimeMonitor.ProcessCHeapInfo>> to
Iterator<RuntimeMonitor.ProcessCHeapInfo>
- Iterator is a raw type. References to generic type Iterator<E> should be
parameterized