0 Replies Latest reply on Dec 17, 2008 5:37 AM by Stuart Douglas

    WikiTextMacro

    Stuart Douglas Master

      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);



      ?