Changeset: 2b890a362e85 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2b890a362e85
Modified Files:
java/src/main/java/nl/cwi/monetdb/jdbc/MonetConnection.java
Branch: default
Log Message:
Resolving javac -Xlint warnings:
nl/cwi/monetdb/jdbc/MonetConnection.java:1724: warning: [cast] redundant cast
to String[]
name =
(String[])(hlp.values.clone());
^
nl/cwi/monetdb/jdbc/MonetConnection.java:1728: warning: [cast] redundant cast
to int[]
columnLengths =
(int[])(hlp.intValues.clone());
^
nl/cwi/monetdb/jdbc/MonetConnection.java:1732: warning: [cast] redundant cast
to String[]
type =
(String[])(hlp.values.clone());
^
nl/cwi/monetdb/jdbc/MonetConnection.java:1736: warning: [cast] redundant cast
to String[]
tableNames =
(String[])(hlp.values.clone());
^
nl/cwi/monetdb/jdbc/MonetConnection.java:2568: warning: [fallthrough] possible
fall-through into case
case
BufferedMCLReader.ERROR:
^
diffs (35 lines):
diff --git a/java/src/main/java/nl/cwi/monetdb/jdbc/MonetConnection.java
b/java/src/main/java/nl/cwi/monetdb/jdbc/MonetConnection.java
--- a/java/src/main/java/nl/cwi/monetdb/jdbc/MonetConnection.java
+++ b/java/src/main/java/nl/cwi/monetdb/jdbc/MonetConnection.java
@@ -1721,19 +1721,19 @@ public class MonetConnection extends Mon
try {
switch (hlp.parse(tmpLine)) {
case HeaderLineParser.NAME:
- name =
(String[])(hlp.values.clone());
+ name = hlp.values.clone();
isSet[NAMES] = true;
break;
case HeaderLineParser.LENGTH:
- columnLengths =
(int[])(hlp.intValues.clone());
+ columnLengths =
hlp.intValues.clone();
isSet[LENS] = true;
break;
case HeaderLineParser.TYPE:
- type =
(String[])(hlp.values.clone());
+ type = hlp.values.clone();
isSet[TYPES] = true;
break;
case HeaderLineParser.TABLE:
- tableNames =
(String[])(hlp.values.clone());
+ tableNames = hlp.values.clone();
isSet[TABLES] = true;
break;
}
@@ -2357,6 +2357,7 @@ public class MonetConnection extends Mon
* @param the query to execute
* @throws SQLException if a database error occurs
*/
+ @SuppressWarnings("fallthrough")
void executeQuery(String[] templ, String query)
throws SQLException
{
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list