db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1360133 - /db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
Date Wed, 11 Jul 2012 12:11:12 GMT
Author: kahatlen
Date: Wed Jul 11 12:11:12 2012
New Revision: 1360133

URL: http://svn.apache.org/viewvc?rev=1360133&view=rev
Log:
DERBY-5847: Clean up IDE warnings in DRDAConnThread

Replace use of obsolete collection class Vector with ArrayList.

Modified:
    db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java

Modified: db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java?rev=1360133&r1=1360132&r2=1360133&view=diff
==============================================================================
--- db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java (original)
+++ db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java Wed Jul 11
12:11:12 2012
@@ -45,9 +45,9 @@ import java.sql.Types;
 import java.util.ArrayList;
 import java.util.Calendar;
 import java.util.Date;
+import java.util.List;
 import java.util.Properties;
 import java.util.TimeZone;
-import java.util.Vector;
 import org.apache.derby.catalog.SystemProcedures;
 import org.apache.derby.iapi.error.ExceptionSeverity;
 import org.apache.derby.iapi.error.StandardException;
@@ -141,10 +141,8 @@ class DRDAConnThread extends Thread {
 	private byte diagnosticLevel = (byte)0xF0; 
 
 	// manager processing
-	private Vector unknownManagers;
-	private Vector knownManagers;
-	private Vector errorManagers;
-	private Vector errorManagersLevel;
+    private List unknownManagers;
+    private List knownManagers;
 
 	// database accessed failed
 	private SQLException databaseAccessException;
@@ -1702,10 +1700,10 @@ class DRDAConnThread extends Thread {
 		int manager, managerLevel;
 		int currentLevel;
 		// set up vectors to keep track of manager information
-		unknownManagers = new Vector();
-		knownManagers = new Vector();
-		errorManagers = new Vector();
-		errorManagersLevel = new Vector();
+		unknownManagers = new ArrayList();
+		knownManagers = new ArrayList();
+		ArrayList errorManagers = new ArrayList();
+		ArrayList errorManagersLevel = new ArrayList();
 		if (SanityManager.DEBUG)
 			trace("Manager Levels");
 



Mime
View raw message