mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Clean up some unused import warnings in the example jdbc code
This commit is contained in:
parent
2fab616866
commit
62b53accd4
@ -1,6 +1,5 @@
|
|||||||
package example;
|
package example;
|
||||||
|
|
||||||
import java.io.*;
|
|
||||||
import java.sql.*;
|
import java.sql.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
|
@ -2,11 +2,10 @@ package example;
|
|||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.sql.*;
|
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
|
* This example tests the basic components of the JDBC driver, and shows
|
||||||
* how even the simplest of queries can be implemented.
|
* how even the simplest of queries can be implemented.
|
||||||
|
@ -2,7 +2,6 @@ package example;
|
|||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.sql.*;
|
import java.sql.*;
|
||||||
import java.text.*;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This example tests the various date styles that are available to postgresql.
|
* This example tests the various date styles that are available to postgresql.
|
||||||
|
@ -2,7 +2,6 @@ package example;
|
|||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.sql.*;
|
import java.sql.*;
|
||||||
import java.text.*;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This example application is not really an example. It actually performs
|
* This example application is not really an example. It actually performs
|
||||||
|
@ -2,7 +2,6 @@ package example;
|
|||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.sql.*;
|
import java.sql.*;
|
||||||
import java.text.*;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This example application demonstrates some of the drivers other features
|
* This example application demonstrates some of the drivers other features
|
||||||
|
@ -2,7 +2,6 @@ package example;
|
|||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.sql.*;
|
import java.sql.*;
|
||||||
import java.text.*;
|
|
||||||
|
|
||||||
// rare in user code, but we use the LargeObject API in this test
|
// rare in user code, but we use the LargeObject API in this test
|
||||||
import org.postgresql.largeobject.*;
|
import org.postgresql.largeobject.*;
|
||||||
@ -106,7 +105,7 @@ public class threadsafe
|
|||||||
// will yield as long as either of the children are still running
|
// will yield as long as either of the children are still running
|
||||||
System.out.println("Waiting for threads to run");
|
System.out.println("Waiting for threads to run");
|
||||||
while (thread1.isAlive() || thread2.isAlive() || thread3.isAlive())
|
while (thread1.isAlive() || thread2.isAlive() || thread3.isAlive())
|
||||||
thread0.yield();
|
Thread.yield();
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,6 @@ import org.postgresql.test.TestUtil;
|
|||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.sql.Statement;
|
import java.sql.Statement;
|
||||||
import java.sql.SQLException;
|
|
||||||
|
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user