Repository: logging-log4j2
Updated Branches:
  refs/heads/master ad24ac5ed -> 4723ef2d8


Format.

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

Branch: refs/heads/master
Commit: 4723ef2d8ef753622af0f7276edac14041349241
Parents: ad24ac5
Author: Gary Gregory <[email protected]>
Authored: Wed May 20 21:11:29 2015 -0700
Committer: Gary Gregory <[email protected]>
Committed: Wed May 20 21:11:29 2015 -0700

----------------------------------------------------------------------
 .../apache/logging/dumbster/smtp/SimpleSmtpServer.java  | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/4723ef2d/log4j-core/src/test/java/org/apache/logging/dumbster/smtp/SimpleSmtpServer.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/test/java/org/apache/logging/dumbster/smtp/SimpleSmtpServer.java
 
b/log4j-core/src/test/java/org/apache/logging/dumbster/smtp/SimpleSmtpServer.java
index 2a08fc7..e43811c 100644
--- 
a/log4j-core/src/test/java/org/apache/logging/dumbster/smtp/SimpleSmtpServer.java
+++ 
b/log4j-core/src/test/java/org/apache/logging/dumbster/smtp/SimpleSmtpServer.java
@@ -109,12 +109,12 @@ public class SimpleSmtpServer implements Runnable {
                 final PrintWriter out = new 
PrintWriter(socket.getOutputStream());
 
                 synchronized (this) {
-          /*
-           * We synchronize over the handle method and the list update because 
the client call completes inside
-           * the handle method and we have to prevent the client from reading 
the list until we've updated it.
-           * For higher concurrency, we could just change handle to return 
void and update the list inside the method
-           * to limit the duration that we hold the lock.
-           */
+                    /*
+                     * We synchronize over the handle method and the list 
update because the client call completes
+                     * inside the handle method and we have to prevent the 
client from reading the list until we've
+                     * updated it. For higher concurrency, we could just 
change handle to return void and update the
+                     * list inside the method to limit the duration that we 
hold the lock.
+                     */
                     final List<SmtpMessage> msgs = handleTransaction(out, 
input);
                     receivedMail.addAll(msgs);
                 }

Reply via email to