现有代码:
Map<?, ?> rolePrincipleMap = cnRoleHolder.getRolePrincipalMap();
Iterator<?> cnRoleIterator = rolePrincipleMap.keySet().iterator();
while (cnRoleIterator.hasNext()) {
Object cnRole = cnRoleIterator.next();
if (!SUBMITTER.equals(cnRole.toString())) {
ArrayList<?> cnRoleMembersList = (ArrayList<?>) rolePrincipleMap.get(cnRole);
//operations
}}
错误在定义 ArraList 的位置。请帮助更新代码。