logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1574213 - /logging/log4j/log4j2/trunk/log4j-flume-ng/src/main/java/org/apache/logging/log4j/flume/appender/FlumeEvent.java
Date Tue, 04 Mar 2014 21:28:50 GMT
Author: ggregory
Date: Tue Mar  4 21:28:50 2014
New Revision: 1574213

URL: http://svn.apache.org/r1574213
Log:
Reuse refactoring from [LOG4J2-561] to allow spaces around commas in Configuration's package
attribute.

Modified:
    logging/log4j/log4j2/trunk/log4j-flume-ng/src/main/java/org/apache/logging/log4j/flume/appender/FlumeEvent.java

Modified: logging/log4j/log4j2/trunk/log4j-flume-ng/src/main/java/org/apache/logging/log4j/flume/appender/FlumeEvent.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-flume-ng/src/main/java/org/apache/logging/log4j/flume/appender/FlumeEvent.java?rev=1574213&r1=1574212&r2=1574213&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-flume-ng/src/main/java/org/apache/logging/log4j/flume/appender/FlumeEvent.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-flume-ng/src/main/java/org/apache/logging/log4j/flume/appender/FlumeEvent.java
Tue Mar  4 21:28:50 2014
@@ -87,7 +87,7 @@ public class FlumeEvent extends SimpleEv
         }
         final Map<String, String> mdc = event.getContextMap();
         if (includes != null) {
-            final String[] array = includes.split(",");
+            final String[] array = includes.split(Patterns.COMMA_SEPARATOR);
             if (array.length > 0) {
                 for (String str : array) {
                     str = str.trim();
@@ -97,7 +97,7 @@ public class FlumeEvent extends SimpleEv
                 }
             }
         } else if (excludes != null) {
-            final String[] array = excludes.split(",");
+            final String[] array = excludes.split(Patterns.COMMA_SEPARATOR);
             if (array.length > 0) {
                 final List<String> list = new ArrayList<String>(array.length);
                 for (final String value : array) {
@@ -114,7 +114,7 @@ public class FlumeEvent extends SimpleEv
         }
 
         if (required != null) {
-            final String[] array = required.split(",");
+            final String[] array = required.split(Patterns.COMMA_SEPARATOR);
             if (array.length > 0) {
                 for (String str : array) {
                     str = str.trim();



Mime
View raw message