Skip to content

Commit cae4afa

Browse files
committed
added missing serialVersionUID on exceptions
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@1095605 13f79535-47bb-0310-9956-ffa450edef68
1 parent 0564458 commit cae4afa

6 files changed

Lines changed: 30 additions & 0 deletions

File tree

src/main/java/org/apache/commons/cli/AlreadySelectedException.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
*/
2727
public class AlreadySelectedException extends ParseException
2828
{
29+
/**
30+
* This exception {@code serialVersionUID}.
31+
*/
32+
private static final long serialVersionUID = 3674381532418544760L;
33+
2934
/** The option group selected. */
3035
private OptionGroup group;
3136

src/main/java/org/apache/commons/cli/AmbiguousOptionException.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
*/
3030
public class AmbiguousOptionException extends UnrecognizedOptionException
3131
{
32+
/**
33+
* This exception {@code serialVersionUID}.
34+
*/
35+
private static final long serialVersionUID = 5829816121277947229L;
36+
3237
/** The list of options matching the partial name specified */
3338
private Collection<String> matchingOptions;
3439

src/main/java/org/apache/commons/cli/MissingArgumentException.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
*/
2727
public class MissingArgumentException extends ParseException
2828
{
29+
/**
30+
* This exception {@code serialVersionUID}.
31+
*/
32+
private static final long serialVersionUID = -7098538588704965017L;
33+
2934
/** The option requiring additional arguments */
3035
private Option option;
3136

src/main/java/org/apache/commons/cli/MissingOptionException.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
*/
2929
public class MissingOptionException extends ParseException
3030
{
31+
/**
32+
* This exception {@code serialVersionUID}.
33+
*/
34+
private static final long serialVersionUID = 8161889051578563249L;
35+
3136
/** The list of missing options and groups */
3237
private List missingOptions;
3338

src/main/java/org/apache/commons/cli/ParseException.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
*/
2626
public class ParseException extends Exception
2727
{
28+
/**
29+
* This exception {@code serialVersionUID}.
30+
*/
31+
private static final long serialVersionUID = 9112808380089253192L;
32+
2833
/**
2934
* Construct a new <code>ParseException</code>
3035
* with the specified detail message.

src/main/java/org/apache/commons/cli/UnrecognizedOptionException.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
*/
2727
public class UnrecognizedOptionException extends ParseException
2828
{
29+
/**
30+
* This exception {@code serialVersionUID}.
31+
*/
32+
private static final long serialVersionUID = -252504690284625623L;
33+
2934
/** The unrecognized option */
3035
private String option;
3136

0 commit comments

Comments
 (0)