I was looking through the code of WikiTextMacro in the Wiki example and came across this:
public String getParamValue(String paramName) {
for (Map.Entry<String, String> param : params.entrySet()) {
if (param.getKey().equals(paramName)) return param.getValue();
}
return null;
}
Is there any reason why this is not just
return params.get(paramName);
?