cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33150] New: - enum used as variable name in o.a.c.portal....FolderTransformer
Date Tue, 18 Jan 2005 13:49:48 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33150>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33150

           Summary: enum used as variable name in
                    o.a.c.portal....FolderTransformer
           Product: Cocoon 2
           Version: Current SVN 2.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: minor
          Priority: P2
         Component: blocks
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: h.vanderlinden@mi.unimaas.nl


Noticed the use of "enum" as variable in
org/apache/cocoon/portal/coplets/basket/FolderTransformer.java

Here's the patch:

Index:
d:/svn/cocoon/src/blocks/portal/java/org/apache/cocoon/portal/coplets/basket/FolderTransformer.java
===================================================================
---
d:/svn/cocoon/src/blocks/portal/java/org/apache/cocoon/portal/coplets/basket/FolderTransformer.java
(revision 125501)
+++
d:/svn/cocoon/src/blocks/portal/java/org/apache/cocoon/portal/coplets/basket/FolderTransformer.java
(working copy)
@@ -98,9 +98,9 @@
             if ( parameters != null && parameters.length() > 0 ) {
                 // create hidden input fields
                 RequestParameters pars = new RequestParameters(parameters);
-                Enumeration enum = pars.getParameterNames();
-                while ( enum.hasMoreElements() ) {
-                    String pName = (String)enum.nextElement();
+                Enumeration enumParm = pars.getParameterNames();
+                while ( enumParm.hasMoreElements() ) {
+                    String pName = (String)enumParm.nextElement();
                     String pValue = pars.getParameter(pName);
                     AttributesImpl hiddenAttrs = new AttributesImpl();
                     hiddenAttrs.addCDATAAttribute("type", "hidden");

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message