List:NDB Connectors« Previous MessageNext Message »
From:Monty Taylor Date:October 1 2007 7:55pm
Subject:Rev 169: Added serialVersionUID fields to all exceptions. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/ndbjmerge
View as plain text  
At http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/ndbjmerge

------------------------------------------------------------
revno: 169
revision-id: mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: ndbjmerge
timestamp: Mon 2007-10-01 12:55:09 -0700
message:
  Added serialVersionUID fields to all exceptions.
  Fixed all warnings within the ndbj classes.
modified:
  java/com/mysql/cluster/ndbj/BlobUndefinedException.java
blobundefinedexcepti-20070428054022-qvbhak1i97y86t1c-1
  java/com/mysql/cluster/ndbj/MgmApiException.java
mgmapiexception.java-20070528224344-z863qm98ai16jr9x-1
  java/com/mysql/cluster/ndbj/NdbApiException.java
ndbapiexception.java-20070428054022-qvbhak1i97y86t1c-2
  java/com/mysql/cluster/ndbj/NdbApiPermanentException.java
ndbapipermanentexcep-20070428054022-qvbhak1i97y86t1c-3
  java/com/mysql/cluster/ndbj/NdbApiRuntimeException.java
ndbapiruntimeexcepti-20070428054022-qvbhak1i97y86t1c-4
  java/com/mysql/cluster/ndbj/NdbApiTemporaryException.java
ndbapitemporaryexcep-20070428054022-qvbhak1i97y86t1c-5
  java/com/mysql/cluster/ndbj/NdbApiTimeStampOutOfBoundsException.java
ndbapitimestampoutof-20070428054022-qvbhak1i97y86t1c-6
  java/com/mysql/cluster/ndbj/NdbApiUserErrorPermanentException.java
ndbapiusererrorperma-20070428054022-qvbhak1i97y86t1c-7
  java/com/mysql/cluster/ndbj/NdbClusterConnectionPermanentException.java
ndbclusterconnection-20070428054022-qvbhak1i97y86t1c-8
  java/com/mysql/cluster/ndbj/NdbClusterConnectionTemporaryException.java
ndbclusterconnection-20070428054022-qvbhak1i97y86t1c-9
  java/com/mysql/cluster/ndbj/NdbEventOperation.java
ndbeventoperation.ja-20070625182612-zsu6r68jih70efaq-1
  java/com/mysql/cluster/ndbj/NdbFactory.java
ndbfactory.java-20070517181935-98huwjarzuh25b30-13
  java/com/mysql/cluster/ndbj/NdbResultSetImpl.java
ndbresultsetimpl.jav-20070517181935-98huwjarzuh25b30-22
  java/com/mysql/cluster/ndbj/NoSuchColumnException.java
nosuchcolumnexceptio-20070428054022-qvbhak1i97y86t1c-10
  java/com/mysql/cluster/ndbj/NoSuchIndexException.java
nosuchindexexception-20070428054022-qvbhak1i97y86t1c-11
  java/com/mysql/cluster/ndbj/NoSuchTableException.java
nosuchtableexception-20070428054022-qvbhak1i97y86t1c-12
=== modified file 'java/com/mysql/cluster/ndbj/BlobUndefinedException.java'
--- a/java/com/mysql/cluster/ndbj/BlobUndefinedException.java	2007-09-17 02:16:25 +0000
+++ b/java/com/mysql/cluster/ndbj/BlobUndefinedException.java	2007-10-01 19:55:09 +0000
@@ -7,6 +7,8 @@
  */
 public class BlobUndefinedException extends NdbApiException {
 
+	static final long serialVersionUID = 1L;
+	
 	public BlobUndefinedException(NdbError error) {
 		super(error);
 	}

=== modified file 'java/com/mysql/cluster/ndbj/MgmApiException.java'
--- a/java/com/mysql/cluster/ndbj/MgmApiException.java	2007-09-17 02:16:25 +0000
+++ b/java/com/mysql/cluster/ndbj/MgmApiException.java	2007-10-01 19:55:09 +0000
@@ -3,6 +3,8 @@
 
 public class MgmApiException extends NdbApiException {
 
+	protected static final long serialVersionUID = 1L;
+	
 	public MgmApiException(NdbError error) {
 		super(error);
 	}

=== modified file 'java/com/mysql/cluster/ndbj/NdbApiException.java'
--- a/java/com/mysql/cluster/ndbj/NdbApiException.java	2007-09-17 02:16:25 +0000
+++ b/java/com/mysql/cluster/ndbj/NdbApiException.java	2007-10-01 19:55:09 +0000
@@ -16,7 +16,7 @@
 public class NdbApiException extends Exception
 {
 
-    protected static final long serialVersionUID=1234;
+    protected static final long serialVersionUID=1L;
     protected final String message;
     protected final NdbError errRef; 
 

=== modified file 'java/com/mysql/cluster/ndbj/NdbApiPermanentException.java'
--- a/java/com/mysql/cluster/ndbj/NdbApiPermanentException.java	2007-09-17 02:16:25 +0000
+++ b/java/com/mysql/cluster/ndbj/NdbApiPermanentException.java	2007-10-01 19:55:09 +0000
@@ -10,7 +10,7 @@
  */
 public class NdbApiPermanentException extends NdbApiException {
 
-	protected static final long serialVersionUID=2345;
+	protected static final long serialVersionUID=1L;
 	/**
 	 * @param error
 	 */

=== modified file 'java/com/mysql/cluster/ndbj/NdbApiRuntimeException.java'
--- a/java/com/mysql/cluster/ndbj/NdbApiRuntimeException.java	2007-09-14 07:54:14 +0000
+++ b/java/com/mysql/cluster/ndbj/NdbApiRuntimeException.java	2007-10-01 19:55:09 +0000
@@ -13,6 +13,7 @@
  */
 public class NdbApiRuntimeException extends RuntimeException {
 
+	protected static final long serialVersionUID = 1L;
 	/**
 	 * 
 	 */

=== modified file 'java/com/mysql/cluster/ndbj/NdbApiTemporaryException.java'
--- a/java/com/mysql/cluster/ndbj/NdbApiTemporaryException.java	2007-09-17 02:16:25 +0000
+++ b/java/com/mysql/cluster/ndbj/NdbApiTemporaryException.java	2007-10-01 19:55:09 +0000
@@ -31,7 +31,7 @@
  */
 public class NdbApiTemporaryException extends NdbApiException {
 
-	protected static final long serialVersionUID=3456;
+	protected static final long serialVersionUID=1L;
 	/**
 	 * @param error
 	 */

=== modified file 'java/com/mysql/cluster/ndbj/NdbApiTimeStampOutOfBoundsException.java'
--- a/java/com/mysql/cluster/ndbj/NdbApiTimeStampOutOfBoundsException.java	2007-09-17
02:16:25 +0000
+++ b/java/com/mysql/cluster/ndbj/NdbApiTimeStampOutOfBoundsException.java	2007-10-01
19:55:09 +0000
@@ -13,7 +13,7 @@
  */
 public class NdbApiTimeStampOutOfBoundsException extends NdbApiException {
 
-	protected static final long serialVersionUID=3556;
+	protected static final long serialVersionUID = 1L;
 	/**
 	 * @param error
 	 */

=== modified file 'java/com/mysql/cluster/ndbj/NdbApiUserErrorPermanentException.java'
--- a/java/com/mysql/cluster/ndbj/NdbApiUserErrorPermanentException.java	2007-09-17
02:16:25 +0000
+++ b/java/com/mysql/cluster/ndbj/NdbApiUserErrorPermanentException.java	2007-10-01
19:55:09 +0000
@@ -11,7 +11,7 @@
  */
 public class NdbApiUserErrorPermanentException extends NdbApiException {
 
-	protected static final long serialVersionUID=4567;
+	protected static final long serialVersionUID = 1L;
 	/**
 	 * @param error
 	 */

=== modified file
'java/com/mysql/cluster/ndbj/NdbClusterConnectionPermanentException.java'
--- a/java/com/mysql/cluster/ndbj/NdbClusterConnectionPermanentException.java	2007-09-17
02:16:25 +0000
+++ b/java/com/mysql/cluster/ndbj/NdbClusterConnectionPermanentException.java	2007-10-01
19:55:09 +0000
@@ -9,7 +9,7 @@
  */
 public class NdbClusterConnectionPermanentException extends NdbApiException {
 
-	protected static final long serialVersionUID=1234;
+	protected static final long serialVersionUID = 1L;
 	
 	/**
 	 * 

=== modified file
'java/com/mysql/cluster/ndbj/NdbClusterConnectionTemporaryException.java'
--- a/java/com/mysql/cluster/ndbj/NdbClusterConnectionTemporaryException.java	2007-09-17
02:16:25 +0000
+++ b/java/com/mysql/cluster/ndbj/NdbClusterConnectionTemporaryException.java	2007-10-01
19:55:09 +0000
@@ -26,7 +26,7 @@
 */
 public class NdbClusterConnectionTemporaryException extends NdbApiException {
 
-	protected static final long serialVersionUID=-4443158L;
+	protected static final long serialVersionUID = 1L;
 
 	/**
 	 *

=== modified file 'java/com/mysql/cluster/ndbj/NdbEventOperation.java'
--- a/java/com/mysql/cluster/ndbj/NdbEventOperation.java	2007-09-30 02:06:41 +0000
+++ b/java/com/mysql/cluster/ndbj/NdbEventOperation.java	2007-10-01 19:55:09 +0000
@@ -143,11 +143,13 @@
 		      this.swigValue = SwigNext.next++;
 		    }
 
+		    @SuppressWarnings("unused")
 		    private State(int swigValue) {
 		      this.swigValue = swigValue;
 		      SwigNext.next = swigValue+1;
 		    }
 
+		    @SuppressWarnings("unused")
 		    private State(State swigEnum) {
 		      this.swigValue = swigEnum.swigValue;
 		      SwigNext.next = this.swigValue+1;

=== modified file 'java/com/mysql/cluster/ndbj/NdbFactory.java'
--- a/java/com/mysql/cluster/ndbj/NdbFactory.java	2007-09-30 02:06:41 +0000
+++ b/java/com/mysql/cluster/ndbj/NdbFactory.java	2007-10-01 19:55:09 +0000
@@ -1,18 +1,7 @@
 package com.mysql.cluster.ndbj;
 
-import java.io.BufferedInputStream;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.lang.reflect.Field;
-import java.net.Authenticator;
-import java.net.HttpURLConnection;
-import java.net.MalformedURLException;
-import java.net.PasswordAuthentication;
-import java.net.URL;
 import java.util.Map;
-import java.util.Properties;
+
 
 /**
  * NdbFactoryRef is a class with a public static factory method for creating

=== modified file 'java/com/mysql/cluster/ndbj/NdbResultSetImpl.java'
--- a/java/com/mysql/cluster/ndbj/NdbResultSetImpl.java	2007-09-30 02:06:41 +0000
+++ b/java/com/mysql/cluster/ndbj/NdbResultSetImpl.java	2007-10-01 19:55:09 +0000
@@ -294,15 +294,15 @@
 			if (scanCheck == 0) {
 				hasData = true;
 			} else if (scanCheck == 2) {
-				/* TODO: FIX This section - we're not storing an NdbTransaction within NdbScanOp any
more 
 				if (rowsModified) {
+					/* TODO: FIX This section - we're not storing an NdbTransaction within NdbScanOp any
more 
 					NdbTransaction trans = null;
 					trans = ((NdbScanOperationImpl)theOp).getNdbTransaction();
 					
 					trans.execute(ExecType.NoCommit,
 							AbortOption.AbortOnError, true);
-					rowsModified = false;
-				} */
+					rowsModified = false; */
+				}
 				return next();
 			} else if (scanCheck == 1) {
 				hasData = false;

=== modified file 'java/com/mysql/cluster/ndbj/NoSuchColumnException.java'
--- a/java/com/mysql/cluster/ndbj/NoSuchColumnException.java	2007-09-14 07:54:14 +0000
+++ b/java/com/mysql/cluster/ndbj/NoSuchColumnException.java	2007-10-01 19:55:09 +0000
@@ -11,6 +11,7 @@
  */
 public class NoSuchColumnException extends NdbApiRuntimeException {
 
+	protected static final long serialVersionUID=1L;
 	/**
 	 * 
 	 */

=== modified file 'java/com/mysql/cluster/ndbj/NoSuchIndexException.java'
--- a/java/com/mysql/cluster/ndbj/NoSuchIndexException.java	2007-09-14 07:54:14 +0000
+++ b/java/com/mysql/cluster/ndbj/NoSuchIndexException.java	2007-10-01 19:55:09 +0000
@@ -11,6 +11,7 @@
  */
 public class NoSuchIndexException extends NdbApiRuntimeException {
 
+	protected static final long serialVersionUID=1L;
 	/**
 	 * 
 	 */

=== modified file 'java/com/mysql/cluster/ndbj/NoSuchTableException.java'
--- a/java/com/mysql/cluster/ndbj/NoSuchTableException.java	2007-09-14 07:54:14 +0000
+++ b/java/com/mysql/cluster/ndbj/NoSuchTableException.java	2007-10-01 19:55:09 +0000
@@ -8,6 +8,7 @@
  */
 public class NoSuchTableException extends NdbApiRuntimeException {
 
+	protected static final long serialVersionUID=1L;
 	/**
 	 * 
 	 */

Thread
Rev 169: Added serialVersionUID fields to all exceptions. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/ndbjmergeMonty Taylor1 Oct