logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1396280 - /logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/util/AbsoluteDateAndTimeFilter.java
Date Tue, 09 Oct 2012 20:09:35 GMT
Author: ggregory
Date: Tue Oct  9 20:09:35 2012
New Revision: 1396280

URL: http://svn.apache.org/viewvc?rev=1396280&view=rev
Log:
Format source.

Modified:
    logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/util/AbsoluteDateAndTimeFilter.java

Modified: logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/util/AbsoluteDateAndTimeFilter.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/util/AbsoluteDateAndTimeFilter.java?rev=1396280&r1=1396279&r2=1396280&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/util/AbsoluteDateAndTimeFilter.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/util/AbsoluteDateAndTimeFilter.java
Tue Oct  9 20:09:35 2012
@@ -20,16 +20,16 @@ package org.apache.logging.log4j.core.ut
 import org.apache.oro.text.perl.Perl5Util;
 
 public class AbsoluteDateAndTimeFilter implements Filter {
-  private final Perl5Util util = new Perl5Util();
+    
+    private final Perl5Util util = new Perl5Util();
 
-  public String filter(String in) {
-    String pat = "/" + Filter.ABSOLUTE_DATE_AND_TIME_PAT + "/";
+    public String filter(String in) {
+        String pat = "/" + Filter.ABSOLUTE_DATE_AND_TIME_PAT + "/";
 
-    if (util.match(pat, in)) {
-      return util.substitute(
-        "s/" + Filter.ABSOLUTE_DATE_AND_TIME_PAT + "//", in);
-    } else {
-      return in;
+        if (util.match(pat, in)) {
+            return util.substitute("s/" + Filter.ABSOLUTE_DATE_AND_TIME_PAT + "//", in);
+        } else {
+            return in;
+        }
     }
-  } 
 }



Mime
View raw message