Changeset: 1052aa6c5276 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1052aa6c5276
Modified Files:
java/src/main/java/nl/cwi/monetdb/client/JdbcClient.java
Branch: default
Log Message:
Resolving javac -Xlint warnings:
nl/cwi/monetdb/client/JdbcClient.java:298: warning: [cast] redundant cast to
Table
Table ttmp = (Table)(tables.get(i));
^
nl/cwi/monetdb/client/JdbcClient.java:1191: warning: [cast] redundant cast to
Table
Table child = (Table)(table.needs.get(i));
^
and removed 2 trailing spaces.
diffs (39 lines):
diff --git a/java/src/main/java/nl/cwi/monetdb/client/JdbcClient.java
b/java/src/main/java/nl/cwi/monetdb/client/JdbcClient.java
--- a/java/src/main/java/nl/cwi/monetdb/client/JdbcClient.java
+++ b/java/src/main/java/nl/cwi/monetdb/client/JdbcClient.java
@@ -73,7 +73,7 @@ public class JdbcClient {
"Suppress printing the welcome header.");
// arguments which have zero to many arguments
- copts.addOption("D", "dump", CmdLineOpts.CAR_ZERO_MANY, null,
+ copts.addOption("D", "dump", CmdLineOpts.CAR_ZERO_MANY, null,
"Dumps the given table(s), or the complete
database if " +
"none given.");
@@ -161,7 +161,7 @@ copts.produceHelpMessage()
// We cannot use the DatabaseMetaData here, because we
// cannot get a Connection. So instead, we just get the
// values we want out of the Driver directly.
- System.out.println("Driver: v" +
+ System.out.println("Driver: v" +
nl.cwi.monetdb.jdbc.MonetDriver.getDriverVersion());
System.exit(0);
}
@@ -295,7 +295,7 @@ copts.produceHelpMessage()
if (copts.getOption("dump").getArgumentCount() > 0) {
// yes we do
String[] dumpers =
copts.getOption("dump").getArguments();
for (int i = 0; i < tables.size(); i++) {
- Table ttmp = (Table)(tables.get(i));
+ Table ttmp = tables.get(i);
for (int j = 0; j < dumpers.length;
j++) {
if
(ttmp.getName().equalsIgnoreCase(dumpers[j].toString()) ||
ttmp.getFqname().equalsIgnoreCase(dumpers[j].toString()))
@@ -1188,7 +1188,7 @@ class Table {
static void checkForLoop(Table table, List<Table> parents) throws
Exception {
parents.add(table);
for (int i = 0; i < table.needs.size(); i++) {
- Table child = (Table)(table.needs.get(i));
+ Table child = table.needs.get(i);
if (parents.contains(child))
throw new Exception("Cyclic dependancy graphs
are not supported (cycle detected for " + child.fqname + ")");
checkForLoop(child, parents);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list