|
From: <ha...@us...> - 2007-08-16 22:48:58
|
Revision: 1679
http://cogkit.svn.sourceforge.net/cogkit/?rev=1679&view=rev
Author: hategan
Date: 2007-08-16 15:48:57 -0700 (Thu, 16 Aug 2007)
Log Message:
-----------
fixed extra newlines
Modified Paths:
--------------
trunk/current/src/cog/modules/karajan/src/org/globus/cog/karajan/workflow/nodes/functions/Misc.java
Modified: trunk/current/src/cog/modules/karajan/src/org/globus/cog/karajan/workflow/nodes/functions/Misc.java
===================================================================
--- trunk/current/src/cog/modules/karajan/src/org/globus/cog/karajan/workflow/nodes/functions/Misc.java 2007-08-16 22:47:46 UTC (rev 1678)
+++ trunk/current/src/cog/modules/karajan/src/org/globus/cog/karajan/workflow/nodes/functions/Misc.java 2007-08-16 22:48:57 UTC (rev 1679)
@@ -115,12 +115,12 @@
BufferedReader br = new BufferedReader(new FileReader(new File(
TypeUtil.toString(PA_FILE.getValue(stack)))));
StringBuffer text = new StringBuffer();
- String line = "";
- do {
+ String line = br.readLine();
+ while (line != null) {
text.append(line);
text.append('\n');
line = br.readLine();
- } while (line != null);
+ };
return text.toString();
}
catch (Exception e) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|