From 672bf38c4c25a6764652ed7b73325f43ad63b1cc Mon Sep 17 00:00:00 2001 From: brutzman <brutzman@nps.edu> Date: Wed, 11 Aug 2021 11:15:51 -0700 Subject: [PATCH] whitespace --- examples/src/TcpExamples/TcpExample1Telnet.java | 2 +- examples/src/TcpExamples/TcpExample3Server.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/src/TcpExamples/TcpExample1Telnet.java b/examples/src/TcpExamples/TcpExample1Telnet.java index df9d5745c9..e969b7958c 100644 --- a/examples/src/TcpExamples/TcpExample1Telnet.java +++ b/examples/src/TcpExamples/TcpExample1Telnet.java @@ -59,7 +59,7 @@ public class TcpExample1Telnet // Use Java io classes to write text (as opposed to // unknown bytes of some sort) to the client OutputStream os = clientConnection.getOutputStream(); - PrintStream ps = new PrintStream(os); + PrintStream ps = new PrintStream(os); ps.println("This client response was written by server " + TcpExample1Telnet.class.getName()); // to remote client System.out.println("This server response was written by server " + TcpExample1Telnet.class.getName()); // to server console diff --git a/examples/src/TcpExamples/TcpExample3Server.java b/examples/src/TcpExamples/TcpExample3Server.java index 0e7a3f29f1..7d5439e1bb 100644 --- a/examples/src/TcpExamples/TcpExample3Server.java +++ b/examples/src/TcpExamples/TcpExample3Server.java @@ -81,8 +81,7 @@ public class TcpExample3Server { if ( localAddress.getHostName().equals( localAddress.getHostAddress()) || remoteAddress.getHostName().equals(remoteAddress.getHostAddress())) - System.out.println(" note HostName matches address if host has no DNS name"); - + System.out.println(" note HostName matches address if host has no DNS name"); // Notice the use of flush() and try w/ resources. Without // the try w/ resources the Socket object may stay open for // a while after the client has stopped needing this -- GitLab