1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix for 51143

This commit is contained in:
Alain Magloire 2004-02-03 23:15:30 +00:00
parent c6f2a35f9c
commit 8512e1b76f
2 changed files with 12 additions and 3 deletions

View file

@ -1,3 +1,11 @@
2004-02-03 Alain Magloire
PR 51143
In testing the duplication of errors, we did not look at the right
severity.
* src/org/eclipse/cdt/core/resources/ACBuilder.java
2004-01-29 Alain Magloire
PR #50846 and patch from Alex Chapiro

View file

@ -34,9 +34,10 @@ public abstract class ACBuilder extends IncrementalProjectBuilder implements IMa
*/
if ((cur != null) && (cur.length > 0)) {
for (int i = 0; i < cur.length; i++) {
if ((((Integer) cur[i].getAttribute(IMarker.LOCATION)).intValue() == lineNumber)
&& (((Integer) cur[i].getAttribute(IMarker.SEVERITY)).intValue() == severity)
&& (((String) cur[i].getAttribute(IMarker.MESSAGE)).equals(errorDesc))) {
int line = ((Integer) cur[i].getAttribute(IMarker.LOCATION)).intValue();
int sev = ((Integer) cur[i].getAttribute(IMarker.SEVERITY)).intValue();
String mesg = (String) cur[i].getAttribute(IMarker.MESSAGE);
if (line == lineNumber && sev == mapMarkerSeverity(severity) && mesg.equals(errorDesc)) {
return;
}
}