comparison tests/SQLcopyinto.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 2b1f650869d6
children d4baf8a4b43a
comparison
equal deleted inserted replaced
256:37b537a7ad60 257:529b92d09fc6
88 String login = mcon.getClientInfo("user"); 88 String login = mcon.getClientInfo("user");
89 String passw = mcon.getClientInfo("password"); 89 String passw = mcon.getClientInfo("password");
90 // System.out.println("host: " + host + " port: " + port + " login: " + login + " passwd: " + passw); 90 // System.out.println("host: " + host + " port: " + port + " login: " + login + " passwd: " + passw);
91 91
92 System.out.println("Before connecting to MonetDB server via MapiSocket"); 92 System.out.println("Before connecting to MonetDB server via MapiSocket");
93 List warning = server.connect(host, port, login, passw); 93 List<String> warning = server.connect(host, port, login, passw);
94 if (warning != null) { 94 if (warning != null) {
95 for (Iterator it = warning.iterator(); it.hasNext(); ) { 95 for (Iterator<String> it = warning.iterator(); it.hasNext(); ) {
96 System.out.println("Warning: " + it.next().toString()); 96 System.out.println("Warning: " + it.next().toString());
97 } 97 }
98 } 98 }
99 System.out.println("Connected to MonetDB server via MapiSocket"); 99 System.out.println("Connected to MonetDB server via MapiSocket");
100 100