roxspring 2004/05/05 14:28:50
Modified: cli/src/java/org/apache/commons/cli2/option
SourceDestArgument.java
Log:
SourceDestArgument has no need to reference ArgumentImpl anymore, replaced with
Argument instead
Revision Changes Path
1.3 +7 -6
jakarta-commons/cli/src/java/org/apache/commons/cli2/option/SourceDestArgument.java
Index: SourceDestArgument.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/cli/src/java/org/apache/commons/cli2/option/SourceDestArgument.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- SourceDestArgument.java 22 Apr 2004 23:00:07 -0000 1.2
+++ SourceDestArgument.java 5 May 2004 21:28:50 -0000 1.3
@@ -21,6 +21,7 @@
import java.util.List;
import java.util.Set;
+import org.apache.commons.cli2.Argument;
import org.apache.commons.cli2.Option;
import org.apache.commons.cli2.OptionException;
import org.apache.commons.cli2.WriteableCommandLine;
@@ -36,8 +37,8 @@
return Math.max(a, Math.max(b, a + b));
}
- private final ArgumentImpl source;
- private final ArgumentImpl dest;
+ private final Argument source;
+ private final Argument dest;
/**
* Creates a SourceDestArgument using defaults where possible.
@@ -46,8 +47,8 @@
* @param dest the fixed size Argument
*/
public SourceDestArgument(
- final ArgumentImpl source,
- final ArgumentImpl dest) {
+ final Argument source,
+ final Argument dest) {
this(
source,
dest,
@@ -68,8 +69,8 @@
* @param defaultValues the default values for the SourceDestArgument
*/
public SourceDestArgument(
- final ArgumentImpl source,
- final ArgumentImpl dest,
+ final Argument source,
+ final Argument dest,
final char initialSeparator,
final char subsequentSeparator,
final String consumeRemaining,
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]