logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1599432 - in /logging/log4j/log4j2/trunk: log4j-1.2-api/src/test/java/org/apache/log4j/ log4j-core/src/main/java/org/apache/logging/log4j/core/util/ log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/
Date Tue, 03 Jun 2014 07:01:42 GMT
Author: ggregory
Date: Tue Jun  3 07:01:42 2014
New Revision: 1599432

URL: http://svn.apache.org/r1599432
Log:
Fix '(' and ')' formatting nits.

Modified:
    logging/log4j/log4j2/trunk/log4j-1.2-api/src/test/java/org/apache/log4j/VelocityTest.java
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/util/FileUtils.java
    logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsQueueAppenderTest.java
    logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsQueueFailoverTest.java
    logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsQueueTest.java
    logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsTopicFailoverTest.java
    logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsTopicTest.java

Modified: logging/log4j/log4j2/trunk/log4j-1.2-api/src/test/java/org/apache/log4j/VelocityTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-1.2-api/src/test/java/org/apache/log4j/VelocityTest.java?rev=1599432&r1=1599431&r2=1599432&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-1.2-api/src/test/java/org/apache/log4j/VelocityTest.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-1.2-api/src/test/java/org/apache/log4j/VelocityTest.java
Tue Jun  3 07:01:42 2014
@@ -32,7 +32,7 @@ public class VelocityTest {
     public void testVelocity() {
         Velocity.init();
         VelocityContext context = new VelocityContext();
-        context.put( "name", new String("Velocity") );
+        context.put("name", new String("Velocity"));
 
         Template template = Velocity.getTemplate("target/test-classes/hello.vm");
 

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/util/FileUtils.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/util/FileUtils.java?rev=1599432&r1=1599431&r2=1599432&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/util/FileUtils.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/util/FileUtils.java
Tue Jun  3 07:01:42 2014
@@ -93,10 +93,10 @@ public final class FileUtils {
         // commons io FileUtils.forceMkdir would be useful here, we just want to omit this
dependency
         if (!dir.exists()) {
             if(!createDirectoryIfNotExisting) {
-                throw new IOException( "The directory " + dir.getAbsolutePath() + " does
not exist." );
+                throw new IOException("The directory " + dir.getAbsolutePath() + " does not
exist.");
             }
             if(!dir.mkdirs()) {
-                throw new IOException( "Could not create directory " + dir.getAbsolutePath()
);
+                throw new IOException("Could not create directory " + dir.getAbsolutePath());
             }
         }
         if (!dir.isDirectory()) {

Modified: logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsQueueAppenderTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsQueueAppenderTest.java?rev=1599432&r1=1599431&r2=1599432&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsQueueAppenderTest.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsQueueAppenderTest.java
Tue Jun  3 07:01:42 2014
@@ -62,7 +62,7 @@ public class JmsQueueAppenderTest {
         StatusLogger.getLogger().registerListener(listener);
         MockContextFactory.setAsInitial();
         context = new InitialContext();
-        context.rebind(FACTORY_NAME, new QueueConnectionFactoryImpl() );
+        context.rebind(FACTORY_NAME, new QueueConnectionFactoryImpl());
         context.rebind(QUEUE_NAME, new MockQueue(QUEUE_NAME));
         System.setProperty(ConfigurationFactory.CONFIGURATION_FILE_PROPERTY, CONFIG);
         receiver = new JmsQueueReceiver(FACTORY_NAME, QUEUE_NAME, null, null);

Modified: logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsQueueFailoverTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsQueueFailoverTest.java?rev=1599432&r1=1599431&r2=1599432&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsQueueFailoverTest.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsQueueFailoverTest.java
Tue Jun  3 07:01:42 2014
@@ -90,7 +90,7 @@ public class JmsQueueFailoverTest {
         StatusLogger.getLogger().registerListener(listener);
         MockContextFactory.setAsInitial();
         context = new InitialContext();
-        context.rebind(FACTORY_NAME, new QueueConnectionFactoryImpl() );
+        context.rebind(FACTORY_NAME, new QueueConnectionFactoryImpl());
         //context.rebind(QUEUE_NAME, new MockQueue(QUEUE_NAME));
         //System.setProperty(ConfigurationFactory.CONFIGURATION_FILE_PROPERTY, CONFIG);
         //receiver = new JmsQueueReceiver(FACTORY_NAME, QUEUE_NAME, null, null);

Modified: logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsQueueTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsQueueTest.java?rev=1599432&r1=1599431&r2=1599432&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsQueueTest.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsQueueTest.java
Tue Jun  3 07:01:42 2014
@@ -68,7 +68,7 @@ public class JmsQueueTest {
         StatusLogger.getLogger().registerListener(listener);
         MockContextFactory.setAsInitial();
         context = new InitialContext();
-        context.rebind(FACTORY_NAME, new QueueConnectionFactoryImpl() );
+        context.rebind(FACTORY_NAME, new QueueConnectionFactoryImpl());
         context.rebind(QUEUE_NAME, new MockQueue(QUEUE_NAME));
         ((LoggerContext) LogManager.getContext()).reconfigure();
         receiver = new JmsQueueReceiver(FACTORY_NAME, QUEUE_NAME, null, null);

Modified: logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsTopicFailoverTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsTopicFailoverTest.java?rev=1599432&r1=1599431&r2=1599432&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsTopicFailoverTest.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsTopicFailoverTest.java
Tue Jun  3 07:01:42 2014
@@ -89,7 +89,7 @@ public class JmsTopicFailoverTest {
         StatusLogger.getLogger().registerListener(listener);
         MockContextFactory.setAsInitial();
         context = new InitialContext();
-        context.rebind(FACTORY_NAME, new TopicConnectionFactoryImpl() );
+        context.rebind(FACTORY_NAME, new TopicConnectionFactoryImpl());
         //context.rebind(QUEUE_NAME, new MockQueue(QUEUE_NAME));
         //System.setProperty(ConfigurationFactory.CONFIGURATION_FILE_PROPERTY, CONFIG);
         //receiver = new JmsQueueReceiver(FACTORY_NAME, QUEUE_NAME, null, null);

Modified: logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsTopicTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsTopicTest.java?rev=1599432&r1=1599431&r2=1599432&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsTopicTest.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/net/jms/JmsTopicTest.java
Tue Jun  3 07:01:42 2014
@@ -68,8 +68,8 @@ public class JmsTopicTest {
         StatusLogger.getLogger().registerListener(listener);
         MockContextFactory.setAsInitial();
         context = new InitialContext();
-        context.rebind(FACTORY_NAME, new TopicConnectionFactoryImpl() );
-        context.rebind(TOPIC_NAME, new MockTopic(TOPIC_NAME) );
+        context.rebind(FACTORY_NAME, new TopicConnectionFactoryImpl());
+        context.rebind(TOPIC_NAME, new MockTopic(TOPIC_NAME));
         ((LoggerContext) LogManager.getContext()).reconfigure();
         receiver = new JmsTopicReceiver(FACTORY_NAME, TOPIC_NAME, null, null);
     }



Mime
View raw message