You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by an...@apache.org on 2004/11/19 08:39:46 UTC

svn commit: r105793 - in cocoon/branches/BRANCH_2_1_X/src/blocks: naming/java/org/apache/cocoon/components/naming scratchpad/java/org/apache/cocoon/generation

Author: antonio
Date: Thu Nov 18 23:39:46 2004
New Revision: 105793

Modified:
   cocoon/branches/BRANCH_2_1_X/src/blocks/naming/java/org/apache/cocoon/components/naming/LDAPEntryManager.java
   cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/java/org/apache/cocoon/generation/RequestParameterGenerator.java
Log:
Remove unnecesary cast

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/naming/java/org/apache/cocoon/components/naming/LDAPEntryManager.java
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/naming/java/org/apache/cocoon/components/naming/LDAPEntryManager.java	(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/naming/java/org/apache/cocoon/components/naming/LDAPEntryManager.java	Thu Nov 18 23:39:46 2004
@@ -280,7 +280,7 @@
 			Iterator vals = ((List)map.get (key)).iterator ();
 			Attribute attr = new BasicAttribute (key);
 			while (vals.hasNext ()) {
-				attr.add ((String)vals.next ());
+				attr.add(vals.next());
 			}
 			attrs.put (attr);
 		}

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/java/org/apache/cocoon/generation/RequestParameterGenerator.java
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/java/org/apache/cocoon/generation/RequestParameterGenerator.java	(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/java/org/apache/cocoon/generation/RequestParameterGenerator.java	Thu Nov 18 23:39:46 2004
@@ -155,15 +155,15 @@
         /* Retrieve the parameters object and "parse" it, sending elements */
         char parameters[] = ((Parameters)this.getValidity()).array;
         int offset = 0;
-        int chunks = (int)parameters[offset++];
+        int chunks = parameters[offset++];
         for (int chunk = 0; chunk < chunks; chunk++) {
 
             /* How many strings do we have in this chunk? */
-            int strings = (int)parameters[offset++];
+            int strings = parameters[offset++];
             if (strings == 0) continue;
 
             /* Dump the parameter element with the name attribute */
-            int length = (int)parameters[offset++];
+            int length = parameters[offset++];
             String name = new String(parameters, offset, length);
             attributes.addAttribute("","name","name","CDATA", name);
             this.xmlConsumer.startElement(URI, E_PARAM_L, E_PARAM_Q, attributes);
@@ -172,7 +172,7 @@
 
             /* Dump out every remaining string in the chunk as a value element */
             for (int string = 1; string < strings; string++) {
-                length = (int)parameters[offset++];
+                length = parameters[offset++];
                 this.xmlConsumer.startElement(URI, E_VALUE_L, E_VALUE_Q, attributes);
                 this.xmlConsumer.characters(parameters, offset, length);
                 this.xmlConsumer.endElement(URI, E_VALUE_L, E_VALUE_Q);