`

Eclipse中HashMap/Hashtable出现警告Type safety本篇文章来源于:开发学院 http://edu.codepub.com 原文

    博客分类:
  • WARN
阅读更多
症状:

Type safety: The method put(Object, Object) belongs to the

raw type HashMap. References to generic type HashMap<K,V> should be parameterized



解决:



HashMap<Object,Object>  cachedDs=new HashMap<Object,Object> ();

cachedDs.put("ds", ds);本篇文章来源于:开发学院 http://edu.codepub.com   原文链接:http://edu.codepub.com/2009/1004/16095.php
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics