Author: markt
Date: Fri Dec 11 08:24:54 2015
New Revision: 1719276
URL: http://svn.apache.org/viewvc?rev=1719276&view=rev
Log:
Fix one FindBugs and one Javadoc warning
Modified:
tomcat/trunk/test/org/apache/tomcat/websocket/server/TesterWsCloseClient.java
Modified:
tomcat/trunk/test/org/apache/tomcat/websocket/server/TesterWsCloseClient.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/websocket/server/TesterWsCloseClient.java?rev=1719276&r1=1719275&r2=1719276&view=diff
==============================================================================
---
tomcat/trunk/test/org/apache/tomcat/websocket/server/TesterWsCloseClient.java
(original)
+++
tomcat/trunk/test/org/apache/tomcat/websocket/server/TesterWsCloseClient.java
Fri Dec 11 08:24:54 2015
@@ -66,8 +66,9 @@ public class TesterWsCloseClient {
private void readUpgradeResponse() throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(
socket.getInputStream()));
- while (!in.readLine().isEmpty()) {
-
+ String line = in.readLine();
+ while (line != null && !line.isEmpty()) {
+ line = in.readLine();
}
}
@@ -78,7 +79,7 @@ public class TesterWsCloseClient {
socket.close();
}
- /**
+ /*
* Send a TCP RST instead of a TCP closing handshake
*/
public void forceCloseSocket() throws IOException {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]