logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1516467 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/jmx/Server.java
Date Thu, 22 Aug 2013 14:41:54 GMT
Author: ggregory
Date: Thu Aug 22 14:41:53 2013
New Revision: 1516467

URL: http://svn.apache.org/r1516467
Log:
The declared (checked) exception MalformedObjectNameException is not actually thrown by various
methods.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/jmx/Server.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/jmx/Server.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/jmx/Server.java?rev=1516467&r1=1516466&r2=1516467&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/jmx/Server.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/jmx/Server.java
Thu Aug 22 14:41:53 2013
@@ -24,11 +24,11 @@ import java.util.Map;
 import java.util.Set;
 import java.util.concurrent.Executor;
 import java.util.concurrent.Executors;
+
 import javax.management.InstanceAlreadyExistsException;
 import javax.management.JMException;
 import javax.management.MBeanRegistrationException;
 import javax.management.MBeanServer;
-import javax.management.MalformedObjectNameException;
 import javax.management.NotCompliantMBeanException;
 import javax.management.ObjectName;
 
@@ -164,28 +164,22 @@ public final class Server {
     }
 
     private static void registerStatusLogger(final MBeanServer mbs, final Executor executor)
-            throws MalformedObjectNameException,
-            InstanceAlreadyExistsException, MBeanRegistrationException,
-            NotCompliantMBeanException {
+            throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException
{
 
         final StatusLoggerAdmin mbean = new StatusLoggerAdmin(executor);
         mbs.registerMBean(mbean, mbean.getObjectName());
     }
 
-    private static void registerContextSelector(final ContextSelector selector,
-            final MBeanServer mbs, final Executor executor)
-            throws MalformedObjectNameException,
-            InstanceAlreadyExistsException, MBeanRegistrationException,
+    private static void registerContextSelector(final ContextSelector selector, final MBeanServer
mbs,
+            final Executor executor) throws InstanceAlreadyExistsException, MBeanRegistrationException,
             NotCompliantMBeanException {
 
         final ContextSelectorAdmin mbean = new ContextSelectorAdmin(selector);
         mbs.registerMBean(mbean, mbean.getObjectName());
     }
 
-    private static void registerContexts(final List<LoggerContext> contexts,
-            final MBeanServer mbs, final Executor executor)
-            throws MalformedObjectNameException,
-            InstanceAlreadyExistsException, MBeanRegistrationException,
+    private static void registerContexts(final List<LoggerContext> contexts, final
MBeanServer mbs,
+            final Executor executor) throws InstanceAlreadyExistsException, MBeanRegistrationException,
             NotCompliantMBeanException {
 
         for (final LoggerContext ctx : contexts) {
@@ -221,11 +215,8 @@ public final class Server {
         }
     }
 
-    private static void registerLoggerConfigs(final LoggerContext ctx,
-            final MBeanServer mbs, final Executor executor)
-            throws MalformedObjectNameException,
-            InstanceAlreadyExistsException, MBeanRegistrationException,
-            NotCompliantMBeanException {
+    private static void registerLoggerConfigs(final LoggerContext ctx, final MBeanServer
mbs, final Executor executor)
+            throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException
{
 
         final Map<String, LoggerConfig> map = ctx.getConfiguration().getLoggers();
         for (final String name : map.keySet()) {
@@ -235,10 +226,8 @@ public final class Server {
         }
     }
 
-    private static void registerAppenders(final LoggerContext ctx, final MBeanServer mbs,
-            final Executor executor) throws MalformedObjectNameException,
-            InstanceAlreadyExistsException, MBeanRegistrationException,
-            NotCompliantMBeanException {
+    private static void registerAppenders(final LoggerContext ctx, final MBeanServer mbs,
final Executor executor)
+            throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException
{
 
         final Map<String, Appender> map = ctx.getConfiguration().getAppenders();
         for (final String name : map.keySet()) {



Mime
View raw message