症状:
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
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