java中定义Map 报错 源代码是这样的protected Map getKeyMethodMap() {Map map = new HashMap();map.put("login","adminLogin");return map;}提示是:Multiple markers at this line- Map is a raw type.References to generic type Map should be para

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/29 09:10:01
java中定义Map 报错 源代码是这样的protected Map getKeyMethodMap() {Map map = new HashMap();map.put(
xJ1_%tB>@kAp!h7A:s$!9cR"Ѕ-" L;Ӯ|ԅU,9#Y\+xݿiKTxrx"q=OΚ=$MQ8/<6*L52Go92t*SB`b$]d2*(M(&0eg0EkEXMP8(Zˆ/#e *Z(%¦&ѰHl~KȦia*xo4 g8TRGP;E&vFriIgl¿ÓU3鶌m .Owȋ#\oil

java中定义Map 报错 源代码是这样的protected Map getKeyMethodMap() {Map map = new HashMap();map.put("login","adminLogin");return map;}提示是:Multiple markers at this line- Map is a raw type.References to generic type Map should be para
java中定义Map 报错
源代码是这样的
protected Map getKeyMethodMap() {
Map map = new HashMap();
map.put("login","adminLogin");
return map;
}
提示是:Multiple markers at this line
- Map is a raw type.References to generic type Map should be
parameterized
- implements
org.apache.struts.actions.LookupDispatchAction.getKeyMethodMap

java中定义Map 报错 源代码是这样的protected Map getKeyMethodMap() {Map map = new HashMap();map.put("login","adminLogin");return map;}提示是:Multiple markers at this line- Map is a raw type.References to generic type Map should be para
需要给Map指定参数类型,Map