changeset 5797:11bfec75d333

7193683: DriverManager Iterator Warning cleanup Reviewed-by: lancea Contributed-by: Dan Xu <dan.xu@oracle.com>
author lancea
date Thu, 30 Aug 2012 13:38:03 -0400
parents cf492d1199dc
children 47f8ba39265c
files src/share/classes/java/sql/DriverManager.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/sql/DriverManager.java	Thu Aug 30 12:55:40 2012 +0100
+++ b/src/share/classes/java/sql/DriverManager.java	Thu Aug 30 13:38:03 2012 -0400
@@ -510,7 +510,7 @@
             public Void run() {
 
                 ServiceLoader<Driver> loadedDrivers = ServiceLoader.load(Driver.class);
-                Iterator driversIterator = loadedDrivers.iterator();
+                Iterator<Driver> driversIterator = loadedDrivers.iterator();
 
                 /* Load these drivers, so that they can be instantiated.
                  * It may be the case that the driver class may not be there