aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamilo Bernal2013-06-14 13:50:15 -0400
committerRoland Grunberg2013-06-14 14:07:47 -0400
commitbdf8a3b817f8d5ffbc64a49454040451a3fecd7a (patch)
treef50cc32634f8a27ce5c5c4ce2ab0b23368b92c20
parentf1e1503ee7ef9a163594a50916408707641231e7 (diff)
downloadorg.eclipse.linuxtools-bdf8a3b817f8d5ffbc64a49454040451a3fecd7a.zip
org.eclipse.linuxtools-bdf8a3b817f8d5ffbc64a49454040451a3fecd7a.tar.gz
org.eclipse.linuxtools-bdf8a3b817f8d5ffbc64a49454040451a3fecd7a.tar.xz
GCov: Remove '==' in string comparison
This fixes a bug introduced in commit 0ff3c. Change-Id: I3b7f98b3095df3d6d58da6136263257c9cdb536d Reviewed-on: https://git.eclipse.org/r/13823 Reviewed-by: Roland Grunberg <rgrunber@redhat.com> IP-Clean: Roland Grunberg <rgrunber@redhat.com> Tested-by: Roland Grunberg <rgrunber@redhat.com>
-rw-r--r--gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/parser/GcnoRecordsParser.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/parser/GcnoRecordsParser.java b/gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/parser/GcnoRecordsParser.java
index 65acfbb..53f047c 100644
--- a/gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/parser/GcnoRecordsParser.java
+++ b/gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/parser/GcnoRecordsParser.java
@@ -208,8 +208,9 @@ public class GcnoRecordsParser {
}
} else {
String fileName = GcovStringReader.readString(stream);
- if (fileName == Messages.GcnoRecordsParser_null_string)
+ if (fileName.equals(Messages.GcnoRecordsParser_null_string)){
break;
+ }
source = findOrAdd(fileName, currentAllSrcs);
lineNos[ix++] = 0;