You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2018/11/20 19:51:45 UTC

httpcomponents-core git commit: Fix: Use println() instead of print() to announce start up.

Repository: httpcomponents-core
Updated Branches:
  refs/heads/master 9e1fb1a80 -> 67c6ede6c


Fix: Use println() instead of print() to announce start up.

Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/67c6ede6
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/67c6ede6
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/67c6ede6

Branch: refs/heads/master
Commit: 67c6ede6cfae6490672527af8897aa0299e24f8e
Parents: 9e1fb1a
Author: Gary Gregory <ga...@gmail.com>
Authored: Tue Nov 20 12:51:42 2018 -0700
Committer: Gary Gregory <ga...@gmail.com>
Committed: Tue Nov 20 12:51:42 2018 -0700

----------------------------------------------------------------------
 .../org/apache/hc/core5/http/examples/AsyncFileServerExample.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/67c6ede6/httpcore5/src/examples/org/apache/hc/core5/http/examples/AsyncFileServerExample.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/examples/org/apache/hc/core5/http/examples/AsyncFileServerExample.java b/httpcore5/src/examples/org/apache/hc/core5/http/examples/AsyncFileServerExample.java
index 727eb6d..62fd525 100644
--- a/httpcore5/src/examples/org/apache/hc/core5/http/examples/AsyncFileServerExample.java
+++ b/httpcore5/src/examples/org/apache/hc/core5/http/examples/AsyncFileServerExample.java
@@ -159,7 +159,7 @@ public class AsyncFileServerExample {
         server.start();
         final Future<ListenerEndpoint> future = server.listen(new InetSocketAddress(port));
         final ListenerEndpoint listenerEndpoint = future.get();
-        System.out.print("Listening on " + listenerEndpoint.getAddress());
+        System.out.println("Listening on " + listenerEndpoint.getAddress());
         server.awaitShutdown(TimeValue.ofDays(Long.MAX_VALUE));
     }