logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1396358 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/routing/Routes.java
Date Tue, 09 Oct 2012 21:53:03 GMT
Author: ggregory
Date: Tue Oct  9 21:53:03 2012
New Revision: 1396358

URL: http://svn.apache.org/viewvc?rev=1396358&view=rev
Log:
Use varargs.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/routing/Routes.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/routing/Routes.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/routing/Routes.java?rev=1396358&r1=1396357&r2=1396358&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/routing/Routes.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/routing/Routes.java
Tue Oct  9 21:53:03 2012
@@ -34,7 +34,7 @@ public final class Routes {
     private final String pattern;
     private final Route[] routes;
 
-    private Routes(String pattern, Route[] routes) {
+    private Routes(String pattern, Route... routes) {
         this.pattern = pattern;
         this.routes = routes;
     }
@@ -79,7 +79,7 @@ public final class Routes {
      */
     @PluginFactory
     public static Routes createRoutes(@PluginAttr("pattern") String pattern,
-                                      @PluginElement("routes") Route[] routes) {
+                                      @PluginElement("routes") Route... routes) {
         if (pattern == null) {
             LOGGER.error("A pattern is required");
             return null;



Mime
View raw message