From: Barry Lind Date: Tue, 9 Sep 2003 11:24:04 +0000 (+0000) Subject: Clean up some unused import warnings in the example jdbc code X-Git-Tag: REL7_4_BETA3~71 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62b53accd496e90df24cf54ab3cf235bc2c9fb38;p=postgresql Clean up some unused import warnings in the example jdbc code --- diff --git a/src/interfaces/jdbc/example/Unicode.java b/src/interfaces/jdbc/example/Unicode.java index f10e454430..b1d1db299c 100644 --- a/src/interfaces/jdbc/example/Unicode.java +++ b/src/interfaces/jdbc/example/Unicode.java @@ -1,6 +1,5 @@ package example; -import java.io.*; import java.sql.*; import java.util.*; diff --git a/src/interfaces/jdbc/example/basic.java b/src/interfaces/jdbc/example/basic.java index 61ef493181..cd7cee04a5 100644 --- a/src/interfaces/jdbc/example/basic.java +++ b/src/interfaces/jdbc/example/basic.java @@ -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. diff --git a/src/interfaces/jdbc/example/datestyle.java b/src/interfaces/jdbc/example/datestyle.java index 4cf40159ca..26a14a760b 100644 --- a/src/interfaces/jdbc/example/datestyle.java +++ b/src/interfaces/jdbc/example/datestyle.java @@ -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. diff --git a/src/interfaces/jdbc/example/metadata.java b/src/interfaces/jdbc/example/metadata.java index 468af6b959..b796329923 100644 --- a/src/interfaces/jdbc/example/metadata.java +++ b/src/interfaces/jdbc/example/metadata.java @@ -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 diff --git a/src/interfaces/jdbc/example/psql.java b/src/interfaces/jdbc/example/psql.java index a5af214d57..283739acd7 100644 --- a/src/interfaces/jdbc/example/psql.java +++ b/src/interfaces/jdbc/example/psql.java @@ -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 diff --git a/src/interfaces/jdbc/example/threadsafe.java b/src/interfaces/jdbc/example/threadsafe.java index c35570a4c2..cb6c0d03f2 100644 --- a/src/interfaces/jdbc/example/threadsafe.java +++ b/src/interfaces/jdbc/example/threadsafe.java @@ -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 { diff --git a/src/interfaces/jdbc/org/postgresql/test/jdbc2/ResultSetTest.java b/src/interfaces/jdbc/org/postgresql/test/jdbc2/ResultSetTest.java index c8b34f2c67..01ff6203fe 100644 --- a/src/interfaces/jdbc/org/postgresql/test/jdbc2/ResultSetTest.java +++ b/src/interfaces/jdbc/org/postgresql/test/jdbc2/ResultSetTest.java @@ -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;