openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r1236278 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionaryFactory.java
Date Thu, 26 Jan 2012 16:35:17 GMT
Author: ppoddar
Date: Thu Jan 26 16:35:16 2012
New Revision: 1236278

URL: http://svn.apache.org/viewvc?rev=1236278&view=rev
Log:
OPENJPA-1050: Use generics

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionaryFactory.java

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionaryFactory.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionaryFactory.java?rev=1236278&r1=1236277&r2=1236278&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionaryFactory.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionaryFactory.java
Thu Jan 26 16:35:16 2012
@@ -148,7 +148,7 @@ public class DBDictionaryFactory {
         String dclass, String props, Connection conn) {
         DBDictionary dict = null;
         try {
-            Class c = Class.forName(dclass, true,
+            Class<?> c = Class.forName(dclass, true,
                 AccessController.doPrivileged(
                     J2DoPrivHelper.getClassLoaderAction(
                         DBDictionary.class)));
@@ -158,7 +158,7 @@ public class DBDictionaryFactory {
             // if the dictionary was not found, make another attempt
             // at loading the dictionary using the current thread.
             try {
-                Class c = Thread.currentThread().getContextClassLoader().loadClass(dclass);
+                Class<?> c = Thread.currentThread().getContextClassLoader().loadClass(dclass);
                 dict = (DBDictionary) AccessController.doPrivileged(
                         J2DoPrivHelper.newInstanceAction(c));
             } catch (Exception e) {



Mime
View raw message