From 43ee46e653aba2850f71f2dca160a3b01c69698c Mon Sep 17 00:00:00 2001 From: hns Date: Fri, 15 Jun 2007 17:57:49 +0000 Subject: [PATCH] * Do not use enum as parameter name as it's a keyword in java 1.5. --- src/helma/util/StringUtils.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/helma/util/StringUtils.java b/src/helma/util/StringUtils.java index cf452d96..512ab4ff 100644 --- a/src/helma/util/StringUtils.java +++ b/src/helma/util/StringUtils.java @@ -73,13 +73,13 @@ public class StringUtils { /** * Collect items of a string enumeration into a String array. - * @param enum an enumeration of strings + * @param en an enumeration of strings * @return the enumeration values as string array */ - public static String[] collect(Enumeration enum) { + public static String[] collect(Enumeration en) { List list = new ArrayList(); - while (enum.hasMoreElements()) { - list.add(enum.nextElement()); + while (en.hasMoreElements()) { + list.add(en.nextElement()); } return (String[]) list.toArray(new String[list.size()]); }