db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1030450 - in /db/derby/code/trunk/java: demo/vtis/java/org/apache/derbyDemo/vtis/core/ demo/vtis/java/org/apache/derbyDemo/vtis/snapshot/ engine/org/apache/derby/impl/services/jmx/
Date Wed, 03 Nov 2010 13:15:09 GMT
Author: kahatlen
Date: Wed Nov  3 13:15:09 2010
New Revision: 1030450

URL: http://svn.apache.org/viewvc?rev=1030450&view=rev
Log:
DERBY-4880: Unchecked warnings in JMXManagementService and VTI demos

Modified:
    db/derby/code/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/QueryVTIHelper.java
    db/derby/code/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/XmlVTI.java
    db/derby/code/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/snapshot/Subscription.java
    db/derby/code/trunk/java/engine/org/apache/derby/impl/services/jmx/JMXManagementService.java

Modified: db/derby/code/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/QueryVTIHelper.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/QueryVTIHelper.java?rev=1030450&r1=1030449&r2=1030450&view=diff
==============================================================================
--- db/derby/code/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/QueryVTIHelper.java
(original)
+++ db/derby/code/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/QueryVTIHelper.java
Wed Nov  3 13:15:09 2010
@@ -179,7 +179,7 @@ public  abstract    class   QueryVTIHelp
             // look up the method on top of us
             StackTraceElement[]     stack = (new Throwable()).getStackTrace();
             StackTraceElement       caller = stack[ 1 ];
-            Class                   callerClass = Class.forName( caller.getClassName() );
+            Class<?>                callerClass = Class.forName( caller.getClassName()
);
             String                  methodName = caller.getMethodName();
             Method                  method = callerClass.getMethod
                 ( methodName, new Class[] { String.class } );

Modified: db/derby/code/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/XmlVTI.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/XmlVTI.java?rev=1030450&r1=1030449&r2=1030450&view=diff
==============================================================================
--- db/derby/code/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/XmlVTI.java (original)
+++ db/derby/code/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/XmlVTI.java Wed
Nov  3 13:15:09 2010
@@ -247,7 +247,7 @@ public  class   XmlVTI  extends StringCo
             // look up the method on top of us
             StackTraceElement[]     stack = (new Throwable()).getStackTrace();
             StackTraceElement       caller = stack[ 1 ];
-            Class                               callerClass = Class.forName( caller.getClassName()
);
+            Class<?> callerClass = Class.forName( caller.getClassName() );
             String                              methodName = caller.getMethodName();
             Method                          method = callerClass.getMethod
                 ( methodName, new Class[] { String.class } );
@@ -255,7 +255,7 @@ public  class   XmlVTI  extends StringCo
             String              rowTag = annotation.rowTag();
             String[]            childTags = annotation.childTags();
             String              vtiClassName = annotation.vtiClassName();
-            Class               vtiClass = Class.forName( vtiClassName );
+            Class<?>            vtiClass = Class.forName( vtiClassName );
             Constructor     constructor = vtiClass.getConstructor
                 ( new Class[] { String.class, String.class, String[].class } );
 

Modified: db/derby/code/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/snapshot/Subscription.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/snapshot/Subscription.java?rev=1030450&r1=1030449&r2=1030450&view=diff
==============================================================================
--- db/derby/code/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/snapshot/Subscription.java
(original)
+++ db/derby/code/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/snapshot/Subscription.java
Wed Nov  3 13:15:09 2010
@@ -272,7 +272,7 @@ public    abstract  class Subscription  
             // look up the method on top of us
             StackTraceElement[]     stack = (new Throwable()).getStackTrace();
             StackTraceElement       caller = stack[ 1 ];
-            Class                   callerClass = Class.forName( caller.getClassName() );
+            Class<?>                callerClass = Class.forName( caller.getClassName()
);
             String                  methodName = caller.getMethodName();
             Method                  method = callerClass.getMethod
                 ( methodName, new Class[] {} );

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/services/jmx/JMXManagementService.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/services/jmx/JMXManagementService.java?rev=1030450&r1=1030449&r2=1030450&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/services/jmx/JMXManagementService.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/services/jmx/JMXManagementService.java
Wed Nov  3 13:15:09 2010
@@ -210,7 +210,8 @@ public final class JMXManagementService 
             final ObjectName beanName = new ObjectName(
                     DERBY_JMX_DOMAIN + ":" + keyProperties
                     + ",system=" + systemIdentifier);
-            
+
+            @SuppressWarnings("unchecked")
             final StandardMBean standardMBean =
                 new StandardMBean(bean, beanInterface) {
                 



Mime
View raw message