diff options
Diffstat (limited to 'libjava/classpath/javax/management/MBeanServerInvocationHandler.java')
| -rw-r--r-- | libjava/classpath/javax/management/MBeanServerInvocationHandler.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libjava/classpath/javax/management/MBeanServerInvocationHandler.java b/libjava/classpath/javax/management/MBeanServerInvocationHandler.java index 948996764d9..acc8543f11b 100644 --- a/libjava/classpath/javax/management/MBeanServerInvocationHandler.java +++ b/libjava/classpath/javax/management/MBeanServerInvocationHandler.java @@ -204,7 +204,7 @@ public class MBeanServerInvocationHandler throws Throwable { String mName = method.getName(); - Class proxyClass = proxy.getClass(); + Class<?> proxyClass = proxy.getClass(); if (mName.equals("toString")) { if (inInterface(mName, proxyClass)) @@ -352,6 +352,8 @@ public class MBeanServerInvocationHandler * @return a proxy for the specified bean. * @see JMX#newMBeanProxy(MBeanServerConnection,ObjectName,Class) */ + // Suppress warnings as we know an instance of T will be returned. + @SuppressWarnings("unchecked") public static <T> T newProxyInstance(MBeanServerConnection conn, ObjectName name, Class<T> iface, boolean broadcaster) |
