Menu

#1 Config, trim always overide in config

open
nobody
None
5
2006-12-21
2006-12-21
No

StringCompare with != shouldn't be done

Index: gov/nasa/jpf/Config.java

--- gov/nasa/jpf/Config.java (revision 210)
+++ gov/nasa/jpf/Config.java (working copy)
@@ -363,7 +363,7 @@
// trim heading and trailing blanks (at least Java 1.4.2 does not take care of trailing blanks)
String v0 = v;
v = v.trim();
- if (v != v0) {
+ if (!v.equals(v0)) {
put(k, v);
}

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.