警告:[unchecked] 对作为普通类型 java.util.Map 的成员的put(K,V) 的调用未经检查
Map map = new HashMap();
map.put("custCertType", certType);
map.put("custCertCode", certCode);
CheckUtil.checkNullParameter(map);//入参校验
此处调用map的put方法,idea标亮警告Unchecked call to ‘put(K, V)’ as a member of raw type ‘java.util.Map’
修改方法:
//Map map = new HashMap();
Map<String,String> map = new HashMap<String,String>();
map.put("custCertType", certType);
map.put("custCertCode", certCode);
CheckUtil.checkNullParameter(map);//入参校验