Skip to content

Commit 3fc3de9

Browse files
committed
Applying Bjorn's 'yes' patch from CLI-140
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/branches/cli-1.x@596142 13f79535-47bb-0310-9956-ffa450edef68
1 parent 1b0a32d commit 3fc3de9

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

src/java/org/apache/commons/cli/CommandLine.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*/
1717
package org.apache.commons.cli;
1818

19+
import java.io.Serializable;
1920
import java.util.Collection;
2021
import java.util.Iterator;
2122
import java.util.LinkedList;
@@ -38,7 +39,9 @@
3839
* @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
3940
* @author John Keyes (john at integralsource.com)
4041
*/
41-
public class CommandLine {
42+
public class CommandLine implements Serializable {
43+
44+
private static final long serialVersionUID = 1L;
4245

4346
/** the unrecognised options/arguments */
4447
private List args = new LinkedList();

src/java/org/apache/commons/cli/OptionGroup.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*/
1717
package org.apache.commons.cli;
1818

19+
import java.io.Serializable;
1920
import java.util.Collection;
2021
import java.util.HashMap;
2122
import java.util.Iterator;
@@ -25,8 +26,10 @@
2526
* @author John Keyes ( john at integralsource.com )
2627
* @version $Revision$
2728
*/
28-
public class OptionGroup {
29+
public class OptionGroup implements Serializable {
2930

31+
private static final long serialVersionUID = 1L;
32+
3033
/** hold the options */
3134
private HashMap optionMap = new HashMap();
3235

src/java/org/apache/commons/cli/Options.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*/
1717
package org.apache.commons.cli;
1818

19+
import java.io.Serializable;
1920
import java.util.ArrayList;
2021
import java.util.Collection;
2122
import java.util.Collections;
@@ -40,8 +41,10 @@
4041
* @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
4142
* @version $Revision$
4243
*/
43-
public class Options {
44+
public class Options implements Serializable {
4445

46+
private static final long serialVersionUID = 1L;
47+
4548
/** a map of the options with the character key */
4649
private Map shortOpts = new HashMap();
4750

0 commit comments

Comments
 (0)