[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit FormControl.java,1.29,1.30
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2002-10-22 20:15:40
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit
In directory usw-pr-cvs1:/tmp/cvs-serv7196/src/com/meterware/httpunit
Modified Files:
FormControl.java
Log Message:
Slight cleanup, added jars to distribution
Index: FormControl.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/FormControl.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- FormControl.java 14 Oct 2002 04:19:06 -0000 1.29
+++ FormControl.java 22 Oct 2002 20:15:34 -0000 1.30
@@ -27,7 +27,6 @@
import org.w3c.dom.NodeList;
import java.util.Hashtable;
-import java.util.Vector;
import java.util.ArrayList;
import java.util.List;
import java.util.Arrays;
@@ -591,27 +590,7 @@
}
- private void addValue( Hashtable valueMap, String name, String value ) {
- String[] currentValues = (String[]) valueMap.get( name );
- if (currentValues == null) {
- valueMap.put( name, new String[] { value } );
- } else {
- valueMap.put( name, withNewValue( currentValues, value ) );
- }
- }
-
-
- /**
- * Adds a string to an array of strings and returns the result.
- **/
- private String[] withNewValue( String[] group, String value ) {
- String[] result = new String[ group.length+1 ];
- System.arraycopy( group, 0, result, 0, group.length );
- result[ group.length ] = value;
- return result;
- }
-
-}
+ }
class TextFormControl extends FormControl {
|