You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2014/09/04 20:59:52 UTC

git commit: I can't see the 'i' and that's usually used for a loop index! use the more conventional 'in'.

Repository: logging-log4j2
Updated Branches:
  refs/heads/master e37350a4c -> b0b617a8b


I can't see the 'i' and that's usually used for a loop index! use the
more conventional 'in'.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/b0b617a8
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/b0b617a8
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/b0b617a8

Branch: refs/heads/master
Commit: b0b617a8b1f1ec2e08da00a0d0425deb38afa2a4
Parents: e37350a
Author: Gary Gregory <ga...@gmail.com>
Authored: Thu Sep 4 14:59:49 2014 -0400
Committer: Gary Gregory <ga...@gmail.com>
Committed: Thu Sep 4 14:59:49 2014 -0400

----------------------------------------------------------------------
 .../org/apache/logging/log4j/io/LoggerStreams.java  | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/b0b617a8/log4j-iostreams/src/main/java/org/apache/logging/log4j/io/LoggerStreams.java
----------------------------------------------------------------------
diff --git a/log4j-iostreams/src/main/java/org/apache/logging/log4j/io/LoggerStreams.java b/log4j-iostreams/src/main/java/org/apache/logging/log4j/io/LoggerStreams.java
index 6213811..ea69016 100644
--- a/log4j-iostreams/src/main/java/org/apache/logging/log4j/io/LoggerStreams.java
+++ b/log4j-iostreams/src/main/java/org/apache/logging/log4j/io/LoggerStreams.java
@@ -249,15 +249,15 @@ public class LoggerStreams {
      * @throws IllegalStateException if no Reader was configured for this builder
      */
     public Reader buildReader() {
-        final Reader r = requireNonNull(this.reader, "reader");
+        final Reader in = requireNonNull(this.reader, "reader");
         if (this.buffered) {
             if (this.bufferSize > 0) {
-                return new LoggerBufferedReader(r, this.bufferSize, this.logger, this.fqcn, this.level, this.marker);
+                return new LoggerBufferedReader(in, this.bufferSize, this.logger, this.fqcn, this.level, this.marker);
             } else {
-                return new LoggerBufferedReader(r, this.logger, this.fqcn, this.level, this.marker);
+                return new LoggerBufferedReader(in, this.logger, this.fqcn, this.level, this.marker);
             }
         } else {
-            return new LoggerReader(r, this.logger, this.fqcn, this.level, this.marker);
+            return new LoggerReader(in, this.logger, this.fqcn, this.level, this.marker);
         }
     }
 
@@ -298,16 +298,16 @@ public class LoggerStreams {
      * @throws IllegalStateException if no InputStream was configured for this builder
      */
     public InputStream buildInputStream() {
-        final InputStream i = requireNonNull(this.inputStream, "inputStream");
+        final InputStream in = requireNonNull(this.inputStream, "inputStream");
         if (this.buffered) {
             if (this.bufferSize > 0) {
-                return new LoggerBufferedInputStream(i, this.charset, this.bufferSize, this.logger, this.fqcn,
+                return new LoggerBufferedInputStream(in, this.charset, this.bufferSize, this.logger, this.fqcn,
                     this.level, this.marker);
             } else {
-                return new LoggerBufferedInputStream(i, this.charset, this.logger, this.fqcn, this.level, this.marker);
+                return new LoggerBufferedInputStream(in, this.charset, this.logger, this.fqcn, this.level, this.marker);
             }
         }
-        return new LoggerInputStream(i, this.charset, this.logger, this.fqcn, this.level, this.marker);
+        return new LoggerInputStream(in, this.charset, this.logger, this.fqcn, this.level, this.marker);
     }
 
     /**