Author: kono
Date: 2012-04-24 13:35:38 -0700 (Tue, 24 Apr 2012)
New Revision: 28970
Modified:
core3/api/trunk/io-api/src/main/java/org/cytoscape/io/BasicCyFileFilter.java
Log:
Some warnings had been removed.
Modified:
core3/api/trunk/io-api/src/main/java/org/cytoscape/io/BasicCyFileFilter.java
===================================================================
---
core3/api/trunk/io-api/src/main/java/org/cytoscape/io/BasicCyFileFilter.java
2012-04-24 20:29:22 UTC (rev 28969)
+++
core3/api/trunk/io-api/src/main/java/org/cytoscape/io/BasicCyFileFilter.java
2012-04-24 20:35:38 UTC (rev 28970)
@@ -52,17 +52,18 @@
this.contentTypes = contentTypes;
this.category = category;
- String d = description == null ? "(" : description + " (";
+ final StringBuilder builder = new StringBuilder();
+ builder.append(description == null ? "(" : description + " (");
for (String ex : extensions)
- d += "*." + ex + ", ";
+ builder.append("*." + ex + ", ");
+ String d = builder.toString();
d = d.substring(0, d.length() - 2);
d += ")";
this.description = d;
this.streamUtil = streamUtil;
-
}
/**
@@ -168,9 +169,13 @@
*/
@Override
public String toString() {
- String s = description + " [category: " + category + "]
[extensions: ";
+ final StringBuilder builder = new StringBuilder();
+ builder.append(description + " [category: " + category + "]
[extensions: ");
+
for (String ext : extensions)
- s += ext + ",";
+ builder.append(ext + ",");
+
+ String s = builder.toString();
s += "] [contentTypes: ";
for (String c : contentTypes)
s += c + ",";
--
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.