Changeset: 91f2bab75b9b for monetdb-java
URL: https://dev.monetdb.org/hg/monetdb-java?cmd=changeset;node=91f2bab75b9b
Modified Files:
        tests/Test_Cmanycon.java
        tests/Test_PSmanycon.java
Branch: default
Log Message:

Resolving javac warnings:
Test_Cmanycon.java:34: warning: [rawtypes] found raw type: Iterator
                        for (Iterator it = cons.iterator(); it.hasNext(); i++) {
                             ^
  missing type arguments for generic class Iterator<E>
  where E is a type-variable:
    E extends Object declared in interface Iterator
Test_PSmanycon.java:34: warning: [rawtypes] found raw type: Iterator
                        for (Iterator it = pss.iterator(); it.hasNext(); i++) {
                             ^
  missing type arguments for generic class Iterator<E>
  where E is a type-variable:
    E extends Object declared in interface Iterator


diffs (28 lines):

diff --git a/tests/Test_Cmanycon.java b/tests/Test_Cmanycon.java
--- a/tests/Test_Cmanycon.java
+++ b/tests/Test_Cmanycon.java
@@ -31,8 +31,8 @@ public class Test_Cmanycon {
 
                        // now try to nicely close them
                        i = 0;
-                       for (Iterator it = cons.iterator(); it.hasNext(); i++) {
-                               Connection con = (Connection)(it.next());
+                       for (Iterator<Connection> it = cons.iterator(); 
it.hasNext(); i++) {
+                               Connection con = it.next();
 
                                // see if the connection still works
                                System.out.print("Closing Connection " + i + 
"...");
diff --git a/tests/Test_PSmanycon.java b/tests/Test_PSmanycon.java
--- a/tests/Test_PSmanycon.java
+++ b/tests/Test_PSmanycon.java
@@ -31,8 +31,8 @@ public class Test_PSmanycon {
 
                        // now try to nicely execute them
                        i = 0;
-                       for (Iterator it = pss.iterator(); it.hasNext(); i++) {
-                               PreparedStatement pstmt = 
(PreparedStatement)(it.next());
+                       for (Iterator<PreparedStatement> it = pss.iterator(); 
it.hasNext(); i++) {
+                               PreparedStatement pstmt = it.next();
 
                                // see if the connection still works
                                System.out.print("Executing PreparedStatement " 
+ i + "...");
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to