Author: kono
Date: 2012-10-05 15:38:54 -0700 (Fri, 05 Oct 2012)
New Revision: 30615
Modified:
core3/impl/branches/user-beta1/table-browser-impl/src/main/java/org/cytoscape/browser/internal/TableColumnStatFileIO.java
Log:
Infinit loop problem fixed.
Modified:
core3/impl/branches/user-beta1/table-browser-impl/src/main/java/org/cytoscape/browser/internal/TableColumnStatFileIO.java
===================================================================
---
core3/impl/branches/user-beta1/table-browser-impl/src/main/java/org/cytoscape/browser/internal/TableColumnStatFileIO.java
2012-10-05 22:05:45 UTC (rev 30614)
+++
core3/impl/branches/user-beta1/table-browser-impl/src/main/java/org/cytoscape/browser/internal/TableColumnStatFileIO.java
2012-10-05 22:38:54 UTC (rev 30615)
@@ -75,9 +75,8 @@
final InputStreamReader reader = new
InputStreamReader(is);
final BufferedReader br = new
BufferedReader(reader);
- String line = br.readLine();
- while (line != null){
-
+ String line = null;
+ while ((line = br.readLine()) != null) {
String[] split =
line.split(",");
if (split.length != 4)
continue;
@@ -92,9 +91,8 @@
TableColumnStat tcs =
tableColStats.get(tableTitle);
tcs.addColumnStat(colName,
colIndex, visible);
- line = br.readLine();
-
}
+ br.close();
}catch(Exception ex){
logger.error("Error reading table
browser status files from session.", ex);
}
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.