Skip to content

Commit bbeb0c0

Browse files
committed
Declares the Serial Version Uid for exceptions.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/codec/trunk@130417 13f79535-47bb-0310-9956-ffa450edef68
1 parent 519cfe5 commit bbeb0c0

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

src/java/org/apache/commons/codec/DecoderException.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,17 @@
2020
* Thrown when a Decoder has encountered a failure condition during a decode.
2121
*
2222
* @author Apache Software Foundation
23-
* @version $Id: DecoderException.java,v 1.9 2004/02/29 04:08:31 tobrien Exp $
23+
* @version $Id: DecoderException.java,v 1.10 2004/09/08 17:45:21 ggregory Exp $
2424
*/
2525
public class DecoderException extends Exception {
2626

27+
/**
28+
* Declares the Serial Version Uid.
29+
*
30+
* @see <a href="http://c2.com/cgi/wiki?AlwaysDeclareSerialVersionUid">Always Declare Serial Version Uid<a>
31+
*/
32+
private static final long serialVersionUID = 1L;
33+
2734
/**
2835
* Creates a DecoderException
2936
*

src/java/org/apache/commons/codec/EncoderException.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,17 @@
2323
* expected range.
2424
*
2525
* @author Apache Software Foundation
26-
* @version $Id: EncoderException.java,v 1.10 2004/02/29 04:08:31 tobrien Exp $
26+
* @version $Id: EncoderException.java,v 1.11 2004/09/08 17:45:21 ggregory Exp $
2727
*/
2828
public class EncoderException extends Exception {
2929

30+
/**
31+
* Declares the Serial Version Uid.
32+
*
33+
* @see <a href="http://c2.com/cgi/wiki?AlwaysDeclareSerialVersionUid">Always Declare Serial Version Uid<a>
34+
*/
35+
private static final long serialVersionUID = 1L;
36+
3037
/**
3138
* Creates a new instance of this exception with an useful message.
3239
*

0 commit comments

Comments
 (0)