perfsonar-dev - [pS-dev] [GEANT/SA2/ps-java-services] r6363 - trunk/perfsonar-base/base/src/test/java/net/geant/perfsonar/helpers
Subject: perfsonar development work
List archive
[pS-dev] [GEANT/SA2/ps-java-services] r6363 - trunk/perfsonar-base/base/src/test/java/net/geant/perfsonar/helpers
Chronological Thread
- From:
- To:
- Subject: [pS-dev] [GEANT/SA2/ps-java-services] r6363 - trunk/perfsonar-base/base/src/test/java/net/geant/perfsonar/helpers
- Date: Mon, 6 May 2013 18:18:36 +0100 (BST)
- Authentication-results: sfpop-ironport05.merit.edu; dkim=neutral (message not signed) header.i=none
Author: psnc.pietrzak
Date: 2013-05-06 18:18:36 +0100 (Mon, 06 May 2013)
New Revision: 6363
Modified:
trunk/perfsonar-base/base/src/test/java/net/geant/perfsonar/helpers/Response.java
Log:
Fixed a bug with eating last character in toString method.
Modified:
trunk/perfsonar-base/base/src/test/java/net/geant/perfsonar/helpers/Response.java
===================================================================
---
trunk/perfsonar-base/base/src/test/java/net/geant/perfsonar/helpers/Response.java
2013-05-06 17:06:56 UTC (rev 6362)
+++
trunk/perfsonar-base/base/src/test/java/net/geant/perfsonar/helpers/Response.java
2013-05-06 17:18:36 UTC (rev 6363)
@@ -57,8 +57,10 @@
public String toString() {
final StringBuffer buffer = new StringBuffer();
try {
- for (int ch = input.read(); ch != -1; ch =
input.read())
+ for (int ch = 0; ch != -1; ) {
+ ch = input.read();
buffer.append((char) ch);
+ }
} catch (IOException e) {
return null;
}
- [pS-dev] [GEANT/SA2/ps-java-services] r6363 - trunk/perfsonar-base/base/src/test/java/net/geant/perfsonar/helpers, svn-noreply, 05/06/2013
Archive powered by MHonArc 2.6.16.