Skip to content

Commit fb630cc

Browse files
author
Barry Lind
committed
clean up warnings produced by Eclipse
1 parent 3551108 commit fb630cc

29 files changed

+118
-115
lines changed

src/interfaces/jdbc/org/postgresql/Driver.java.in

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Copyright (c) 2003, PostgreSQL Global Development Group
77
*
88
* IDENTIFICATION
9-
* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/Attic/Driver.java.in,v 1.29 2003/05/29 03:22:48 barry Exp $
9+
* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/Attic/Driver.java.in,v 1.30 2003/05/29 04:39:51 barry Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -198,7 +198,8 @@ public class Driver implements java.sql.Driver
198198
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
199199
{
200200
//This method isn't really implemented
201-
Properties p = parseURL(url, info);
201+
//we just parse the URL to ensure it is valid
202+
parseURL(url, info);
202203
return new DriverPropertyInfo[0];
203204
}
204205

@@ -261,8 +262,6 @@ public class Driver implements java.sql.Driver
261262
{
262263
int state = -1;
263264
Properties urlProps = new Properties(defaults);
264-
String key = "";
265-
String value = "";
266265

267266
String l_urlServer = url;
268267
String l_urlArgs = "";

src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Copyright (c) 2003, PostgreSQL Global Development Group
77
*
88
* IDENTIFICATION
9-
* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/fastpath/Attic/Fastpath.java,v 1.13 2003/05/29 03:21:32 barry Exp $
9+
* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/fastpath/Attic/Fastpath.java,v 1.14 2003/05/29 04:39:51 barry Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -225,6 +225,7 @@ private Object fastpathV2(int fnid, boolean resulttype, FastpathArg[] args) thro
225225
switch (c)
226226
{
227227
case 'A': // Asynchronous Notify
228+
//TODO: do something with this
228229
int pid = stream.ReceiveInteger(4);
229230
String msg = stream.ReceiveString(conn.getEncoding());
230231
break;

src/interfaces/jdbc/org/postgresql/geometric/PGcircle.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,17 @@
77
* Copyright (c) 2003, PostgreSQL Global Development Group
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/geometric/Attic/PGcircle.java,v 1.4 2003/03/07 18:39:42 barry Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/geometric/Attic/PGcircle.java,v 1.5 2003/05/29 04:39:48 barry Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
1414
package org.postgresql.geometric;
1515

16-
import java.io.Serializable;
17-
import java.sql.SQLException;
18-
import java.util.Hashtable;
1916
import org.postgresql.util.PGobject;
2017
import org.postgresql.util.PGtokenizer;
2118
import org.postgresql.util.PSQLException;
19+
import java.io.Serializable;
20+
import java.sql.SQLException;
2221

2322
public class PGcircle extends PGobject implements Serializable, Cloneable
2423
{

src/interfaces/jdbc/org/postgresql/geometric/PGpoint.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,18 @@
66
* Copyright (c) 2003, PostgreSQL Global Development Group
77
*
88
* IDENTIFICATION
9-
* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/geometric/Attic/PGpoint.java,v 1.4 2003/03/07 18:39:43 barry Exp $
9+
* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/geometric/Attic/PGpoint.java,v 1.5 2003/05/29 04:39:48 barry Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
1313
package org.postgresql.geometric;
1414

15-
import java.awt.Point;
16-
import java.io.Serializable;
17-
import java.sql.SQLException;
1815
import org.postgresql.util.PGobject;
1916
import org.postgresql.util.PGtokenizer;
2017
import org.postgresql.util.PSQLException;
21-
22-
import org.postgresql.util.*;
18+
import java.awt.Point;
19+
import java.io.Serializable;
20+
import java.sql.SQLException;
2321

2422
/*
2523
* This implements a version of java.awt.Point, except it uses double

src/interfaces/jdbc/org/postgresql/geometric/PGpolygon.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@
66
* Copyright (c) 2003, PostgreSQL Global Development Group
77
*
88
* IDENTIFICATION
9-
* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/geometric/Attic/PGpolygon.java,v 1.4 2003/03/07 18:39:43 barry Exp $
9+
* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/geometric/Attic/PGpolygon.java,v 1.5 2003/05/29 04:39:48 barry Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
1313
package org.postgresql.geometric;
1414

15-
import java.io.Serializable;
16-
import java.sql.SQLException;
1715
import org.postgresql.util.PGobject;
1816
import org.postgresql.util.PGtokenizer;
19-
import org.postgresql.util.PSQLException;
17+
import java.io.Serializable;
18+
import java.sql.SQLException;
2019

2120
public class PGpolygon extends PGobject implements Serializable, Cloneable
2221
{

src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public String getDriverName() throws SQLException
250250
*/
251251
public String getDriverVersion() throws SQLException
252252
{
253-
String driverVersion = connection.this_driver.getVersion();
253+
String driverVersion = Driver.getVersion();
254254
if (Driver.logDebug)
255255
Driver.debug("getDriverVersion " + driverVersion);
256256
return driverVersion;
@@ -3412,7 +3412,6 @@ public java.sql.ResultSet getTypeInfo() throws SQLException
34123412
{
34133413

34143414
Field f[] = new Field[18];
3415-
ResultSet r; // ResultSet for the SQL query that we need to do
34163415
Vector v = new Vector(); // The new ResultSet tuple stuff
34173416

34183417
f[0] = new Field(connection, "TYPE_NAME", iVarcharOid, getMaxNameLength());

src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSetMetaData.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
package org.postgresql.jdbc1;
22

33

4-
import java.lang.*;
5-
import java.util.*;
64
import org.postgresql.core.Field;
7-
import org.postgresql.util.*;
5+
import org.postgresql.util.PSQLException;
86
import java.sql.SQLException;
97
import java.sql.Types;
8+
import java.util.Vector;
109

1110
public abstract class AbstractJdbc1ResultSetMetaData
1211
{
@@ -180,7 +179,6 @@ public int getColumnDisplaySize(int column) throws SQLException
180179
{
181180
Field f = getField(column);
182181
String type_name = f.getPGType();
183-
int sql_type = f.getSQLType();
184182
int typmod = f.getMod();
185183

186184
// I looked at other JDBC implementations and couldn't find a consistent

src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,31 @@
11
package org.postgresql.jdbc1;
22

3-
import java.io.*;
4-
5-
import java.math.BigDecimal;
6-
import java.sql.*;
7-
import java.util.Vector;
83
import org.postgresql.core.BaseConnection;
94
import org.postgresql.core.BaseResultSet;
105
import org.postgresql.core.BaseStatement;
116
import org.postgresql.core.Field;
127
import org.postgresql.core.QueryExecutor;
13-
import org.postgresql.largeobject.*;
14-
import org.postgresql.util.*;
8+
import org.postgresql.largeobject.LargeObject;
9+
import org.postgresql.largeobject.LargeObjectManager;
10+
import org.postgresql.util.PGbytea;
11+
import org.postgresql.util.PGobject;
12+
import org.postgresql.util.PSQLException;
13+
import java.io.IOException;
14+
import java.io.InputStream;
15+
import java.io.InputStreamReader;
16+
import java.io.OutputStream;
17+
import java.io.UnsupportedEncodingException;
18+
import java.math.BigDecimal;
19+
import java.sql.CallableStatement;
20+
import java.sql.ResultSet;
21+
import java.sql.SQLException;
22+
import java.sql.SQLWarning;
23+
import java.sql.Time;
24+
import java.sql.Timestamp;
25+
import java.sql.Types;
26+
import java.util.Vector;
1527

16-
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Statement.java,v 1.21 2003/05/03 20:40:45 barry Exp $
28+
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Statement.java,v 1.22 2003/05/29 04:39:49 barry Exp $
1729
* This class defines methods of the jdbc1 specification. This class is
1830
* extended by org.postgresql.jdbc2.AbstractJdbc2Statement which adds the jdbc2
1931
* methods. The real Statement class (for jdbc1) is org.postgresql.jdbc1.Jdbc1Statement

src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2Blob.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
package org.postgresql.jdbc2;
22

3-
import java.lang.*;
4-
import java.io.*;
5-
import java.math.*;
6-
import java.text.*;
7-
import java.util.*;
8-
import java.sql.*;
93
import org.postgresql.PGConnection;
10-
import org.postgresql.largeobject.*;
4+
import org.postgresql.largeobject.LargeObject;
5+
import org.postgresql.largeobject.LargeObjectManager;
6+
import java.io.InputStream;
7+
import java.sql.Blob;
8+
import java.sql.SQLException;
119

1210
public abstract class AbstractJdbc2Blob
1311
{

src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2Clob.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package org.postgresql.jdbc2;
22

33

4-
import java.lang.*;
5-
import java.io.*;
6-
import java.math.*;
7-
import java.text.*;
8-
import java.util.*;
9-
import java.sql.*;
104
import org.postgresql.PGConnection;
11-
import org.postgresql.largeobject.*;
5+
import org.postgresql.largeobject.LargeObject;
6+
import org.postgresql.largeobject.LargeObjectManager;
7+
import java.io.InputStream;
8+
import java.io.InputStreamReader;
9+
import java.io.Reader;
10+
import java.sql.Clob;
11+
import java.sql.SQLException;
1212

1313
public class AbstractJdbc2Clob
1414
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy