]> granicus.if.org Git - postgresql/commitdiff
Clean up some unused import warnings in the example jdbc code
authorBarry Lind <barry@xythos.com>
Tue, 9 Sep 2003 11:24:04 +0000 (11:24 +0000)
committerBarry Lind <barry@xythos.com>
Tue, 9 Sep 2003 11:24:04 +0000 (11:24 +0000)
src/interfaces/jdbc/example/Unicode.java
src/interfaces/jdbc/example/basic.java
src/interfaces/jdbc/example/datestyle.java
src/interfaces/jdbc/example/metadata.java
src/interfaces/jdbc/example/psql.java
src/interfaces/jdbc/example/threadsafe.java
src/interfaces/jdbc/org/postgresql/test/jdbc2/ResultSetTest.java

index f10e4544305e2b52137f7985fdb22da9f7497907..b1d1db299c68ca5b68a0b59759d433b64dadf2c2 100644 (file)
@@ -1,6 +1,5 @@
 package example;
 
-import java.io.*;
 import java.sql.*;
 import java.util.*;
 
index 61ef493181dba2ac9c0f15a3c36353d4b23474bf..cd7cee04a51d1aa79c3f3767502e2640b9eb1ed9 100644 (file)
@@ -2,11 +2,10 @@ package example;
 
 import java.io.*;
 import java.sql.*;
-import java.text.*;
 
 /*
  *
- * $Id: basic.java,v 1.13 2002/09/06 21:23:05 momjian Exp $
+ * $Id: basic.java,v 1.14 2003/09/09 11:24:04 barry Exp $
  *
  * This example tests the basic components of the JDBC driver, and shows
  * how even the simplest of queries can be implemented.
index 4cf40159ca128b4b4143bb870be96e15b764c615..26a14a760bb4e93c1b97663200d0bad1966ad5cb 100644 (file)
@@ -2,7 +2,6 @@ package example;
 
 import java.io.*;
 import java.sql.*;
-import java.text.*;
 
 /*
  * This example tests the various date styles that are available to postgresql.
index 468af6b959894f43e1770ebbf11aae3321e7313b..b796329923ac409041fbe92314f99baab0862f5a 100644 (file)
@@ -2,7 +2,6 @@ package example;
 
 import java.io.*;
 import java.sql.*;
-import java.text.*;
 
 /*
  * This example application is not really an example. It actually performs
index a5af214d57438c2a094d0750595d4990b6a3baf3..283739acd72dad116dffb578e1fd1f94034e3d04 100644 (file)
@@ -2,7 +2,6 @@ package example;
 
 import java.io.*;
 import java.sql.*;
-import java.text.*;
 
 /*
  * This example application demonstrates some of the drivers other features
index c35570a4c2a424ef7bc353cdcaa3a507f867e1b8..cb6c0d03f2f1b30dc32aa38c87b25bc411501e5c 100644 (file)
@@ -2,7 +2,6 @@ package example;
 
 import java.io.*;
 import java.sql.*;
-import java.text.*;
 
 // rare in user code, but we use the LargeObject API in this test
 import org.postgresql.largeobject.*;
@@ -106,7 +105,7 @@ public class threadsafe
                        // will yield as long as either of the children are still running
                        System.out.println("Waiting for threads to run");
                        while (thread1.isAlive() || thread2.isAlive() || thread3.isAlive())
-                               thread0.yield();
+                               Thread.yield();
                }
                finally
                {
index c8b34f2c67a889b890bd8503b225f8cdc73d7e80..01ff6203fe1769cafc7d19f63e08d6f408452e40 100644 (file)
@@ -4,7 +4,6 @@ import org.postgresql.test.TestUtil;
 import java.sql.Connection;
 import java.sql.ResultSet;
 import java.sql.Statement;
-import java.sql.SQLException;
 
 import junit.framework.TestCase;