Mercurial > hg > monetdb-java
diff example/MJDBCTest.java @ 257:529b92d09fc6
Resolve compilation warnings when compiled with javac -Xlint
such as:
tests/SQLcopyinto.java:93: warning: [rawtypes] found raw type: List
List warning = server.connect(host, port, login, passw);
^
missing type arguments for generic class List<E>
where E is a type-variable:
E extends Object declared in interface List
tests/SQLcopyinto.java:95: warning: [rawtypes] found raw type: Iterator
for (Iterator it = warning.iterator(); it.hasNext(); ) {
^
missing type arguments for generic class Iterator<E>
where E is a type-variable:
E extends Object declared in interface Iterator
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 22 Nov 2018 13:12:53 +0100 (2018-11-22) |
parents | 5ea126405bac |
children | d4baf8a4b43a |
line wrap: on
line diff
--- a/example/MJDBCTest.java +++ b/example/MJDBCTest.java @@ -18,7 +18,7 @@ import java.sql.*; public class MJDBCTest { public static void main(String[] args) throws Exception { String MonetDB_JDBC_URL = "jdbc:monetdb://localhost:50000/demo"; // change host, port and databasename - Connection con; + Connection con = null; try { con = DriverManager.getConnection(MonetDB_JDBC_URL, "monetdb", "monetdb"); } catch (SQLException e) {