db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r686296 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/services/jmx/JMXManagementService.java
Date Fri, 15 Aug 2008 18:02:11 GMT
Author: myrnavl
Date: Fri Aug 15 11:02:11 2008
New Revision: 686296

URL: http://svn.apache.org/viewvc?rev=686296&view=rev
Log:
DERBY-3745: derby can leak classloaders; fixing build warning resulting from
  a previous check-in.
  patch by Kathey Marsden

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/services/jmx/JMXManagementService.java

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=686296&r1=686295&r2=686296&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
Fri Aug 15 11:02:11 2008
@@ -172,8 +172,8 @@
         ClassLoader savecl = null;
         try {
             savecl = (ClassLoader)AccessController.doPrivileged(
-               new PrivilegedAction() {
-                public Object run()  {
+               new PrivilegedAction<ClassLoader>() {
+                public ClassLoader run()  {
                     return Thread.currentThread().getContextClassLoader();
                 }
             });
@@ -187,7 +187,7 @@
         if (hasGetClassLoaderPerms)
             try {
                 AccessController.doPrivileged(
-                new PrivilegedAction() {
+                new PrivilegedAction<Object>() {
                     public Object run()  {
                         Thread.
                                                                   currentThread().setContextClassLoader(null);
@@ -220,7 +220,7 @@
             try {
                 final ClassLoader tmpsavecl = savecl;
                 AccessController.doPrivileged(
-                new PrivilegedAction() {
+                new PrivilegedAction<Object>() {
                     public Object run()  {
                         Thread.currentThread().setContextClassLoader(tmpsavecl);
                         return null;



Mime
View raw message