You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2009/11/23 18:19:15 UTC
svn commit: r883423 -
/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/SQLNestedException.java
Author: sebb
Date: Mon Nov 23 17:19:14 2009
New Revision: 883423
URL: http://svn.apache.org/viewvc?rev=883423&view=rev
Log:
Add serialVersionUID
Make private immutable field final
Modified:
commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/SQLNestedException.java
Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/SQLNestedException.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/SQLNestedException.java?rev=883423&r1=883422&r2=883423&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/SQLNestedException.java (original)
+++ commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/SQLNestedException.java Mon Nov 23 17:19:14 2009
@@ -32,6 +32,8 @@
*/
public class SQLNestedException extends SQLException {
+ private static final long serialVersionUID = 1046151479543081202L;
+
/* Throwable.getCause detection as found in commons-lang */
private static final Method THROWABLE_CAUSE_METHOD;
static {
@@ -52,7 +54,7 @@
* Holds the reference to the exception or error that caused
* this exception to be thrown.
*/
- private Throwable cause = null;
+ private final Throwable cause;
/**
* Constructs a new <code>SQLNestedException</code> with specified