db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject svn commit: r1412038 - in /db/jdo/trunk/api: src/java/javax/jdo/spi/JDOImplHelper.java test/java/javax/jdo/ObjectStateTest.java test/java/javax/jdo/util/BatchTestRunner.java
Date Wed, 21 Nov 2012 10:07:29 GMT
Author: andyj
Date: Wed Nov 21 10:07:27 2012
New Revision: 1412038

URL: http://svn.apache.org/viewvc?rev=1412038&view=rev
Log:
Fix compile problems when using Maven 3.0.4 with JDK1.7

Modified:
    db/jdo/trunk/api/src/java/javax/jdo/spi/JDOImplHelper.java
    db/jdo/trunk/api/test/java/javax/jdo/ObjectStateTest.java
    db/jdo/trunk/api/test/java/javax/jdo/util/BatchTestRunner.java

Modified: db/jdo/trunk/api/src/java/javax/jdo/spi/JDOImplHelper.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/src/java/javax/jdo/spi/JDOImplHelper.java?rev=1412038&r1=1412037&r2=1412038&view=diff
==============================================================================
--- db/jdo/trunk/api/src/java/javax/jdo/spi/JDOImplHelper.java (original)
+++ db/jdo/trunk/api/src/java/javax/jdo/spi/JDOImplHelper.java Wed Nov 21 10:07:27 2012
@@ -839,7 +839,7 @@ public class JDOImplHelper extends java.
     public static Object construct(String className, String keyString) {
         StringConstructor stringConstructor;
         try {
-            Class keyClass = Class.forName(className);
+            Class<?> keyClass = Class.forName(className);
             synchronized(stringConstructorMap) {
                 stringConstructor = 
                         (StringConstructor) stringConstructorMap.get(keyClass);

Modified: db/jdo/trunk/api/test/java/javax/jdo/ObjectStateTest.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/test/java/javax/jdo/ObjectStateTest.java?rev=1412038&r1=1412037&r2=1412038&view=diff
==============================================================================
--- db/jdo/trunk/api/test/java/javax/jdo/ObjectStateTest.java (original)
+++ db/jdo/trunk/api/test/java/javax/jdo/ObjectStateTest.java Wed Nov 21 10:07:27 2012
@@ -217,7 +217,8 @@ public class ObjectStateTest extends Abs
     private static Method getDeclaredMethod
             (Class clazz, String methodName, Class[] parameters) {
         try {
-            Method result = clazz.getDeclaredMethod(methodName, parameters);
+            @SuppressWarnings("unchecked")
+			Method result = clazz.getDeclaredMethod(methodName, parameters);
             return result;
         } catch (Exception ex) {
             // human-readable class.methodName(parameter[,parameter])

Modified: db/jdo/trunk/api/test/java/javax/jdo/util/BatchTestRunner.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/test/java/javax/jdo/util/BatchTestRunner.java?rev=1412038&r1=1412037&r2=1412038&view=diff
==============================================================================
--- db/jdo/trunk/api/test/java/javax/jdo/util/BatchTestRunner.java (original)
+++ db/jdo/trunk/api/test/java/javax/jdo/util/BatchTestRunner.java Wed Nov 21 10:07:27 2012
@@ -111,7 +111,7 @@ public class BatchTestRunner
                 String msg = null;
                 try {
                     // get class instance
-                    Class clazz = Class.forName(className);
+                    Class<?> clazz = Class.forName(className);
                     // constructor taking PrintStream arg
                     Constructor ctor = clazz.getConstructor(
                         new Class[] { PrintStream.class } );



Mime
View raw message