commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r883423 - /commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/SQLNestedException.java
Date Mon, 23 Nov 2009 17:19:15 GMT
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



Mime
View raw message