activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1516652 - /activemq/trunk/activemq-runtime-config/src/main/java/org/apache/activemq/plugin/RuntimeConfigurationBroker.java
Date Thu, 22 Aug 2013 22:52:17 GMT
Author: gtully
Date: Thu Aug 22 22:52:17 2013
New Revision: 1516652

URL: http://svn.apache.org/r1516652
Log:
https://issues.apache.org/jira/browse/AMQ-4682 - tidy imports and format

Modified:
    activemq/trunk/activemq-runtime-config/src/main/java/org/apache/activemq/plugin/RuntimeConfigurationBroker.java

Modified: activemq/trunk/activemq-runtime-config/src/main/java/org/apache/activemq/plugin/RuntimeConfigurationBroker.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-runtime-config/src/main/java/org/apache/activemq/plugin/RuntimeConfigurationBroker.java?rev=1516652&r1=1516651&r2=1516652&view=diff
==============================================================================
--- activemq/trunk/activemq-runtime-config/src/main/java/org/apache/activemq/plugin/RuntimeConfigurationBroker.java
(original)
+++ activemq/trunk/activemq-runtime-config/src/main/java/org/apache/activemq/plugin/RuntimeConfigurationBroker.java
Thu Aug 22 22:52:17 2013
@@ -17,7 +17,6 @@
 package org.apache.activemq.plugin;
 
 import java.io.IOException;
-import java.net.URL;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Date;
@@ -39,8 +38,6 @@ import javax.xml.parsers.DocumentBuilder
 import javax.xml.parsers.ParserConfigurationException;
 import javax.xml.validation.Schema;
 import javax.xml.validation.SchemaFactory;
-import javax.xml.validation.Validator;
-import javax.xml.validation.ValidatorHandler;
 import org.apache.activemq.broker.BrokerFilter;
 import org.apache.activemq.broker.ConnectionContext;
 import org.apache.activemq.broker.jmx.ManagementContext;
@@ -79,6 +76,7 @@ public class RuntimeConfigurationBroker 
     private final ReentrantReadWriteLock addDestinationBarrier = new ReentrantReadWriteLock();
     private ObjectName objectName;
     private String infoString;
+    private Schema schema;
 
     public RuntimeConfigurationBroker(org.apache.activemq.broker.Broker next) {
         super(next);
@@ -473,12 +471,11 @@ public class RuntimeConfigurationBroker 
         return jaxbConfig;
     }
 
-    private Schema schema;
     private Schema getSchema() throws SAXException {
         if (schema == null) {
             SchemaFactory schemaFactory = SchemaFactory.newInstance(
-                                    XMLConstants.W3C_XML_SCHEMA_NS_URI);
-                schema = schemaFactory.newSchema(getClass().getResource("/activemq.xsd"));
+                    XMLConstants.W3C_XML_SCHEMA_NS_URI);
+            schema = schemaFactory.newSchema(getClass().getResource("/activemq.xsd"));
         }
         return schema;
     }



Mime
View raw message