Lines 115-126
Link Here
|
115 |
} else { |
115 |
} else { |
116 |
priority += P_OUTSIDE_METHOD; |
116 |
priority += P_OUTSIDE_METHOD; |
117 |
} |
117 |
} |
|
|
118 |
if (firstErrors.contains(problem)){ // if context is null, firstErrors is null too |
119 |
priority += P_FIRST_ERROR; |
120 |
} |
118 |
} else { |
121 |
} else { |
119 |
priority += P_OUTSIDE_METHOD; |
122 |
priority += P_OUTSIDE_METHOD; |
120 |
} |
123 |
} |
121 |
if (firstErrors.contains(problem)){ |
|
|
122 |
priority += P_FIRST_ERROR; |
123 |
} |
124 |
return priority; |
124 |
return priority; |
125 |
} |
125 |
} |
126 |
|
126 |
|
Lines 147-152
Link Here
|
147 |
removed++; |
147 |
removed++; |
148 |
problems[i] = null; |
148 |
problems[i] = null; |
149 |
if (problemsMap != null) problemsMap.remove(problem); |
149 |
if (problemsMap != null) problemsMap.remove(problem); |
|
|
150 |
if (firstErrors != null) firstErrors.remove(problem); |
150 |
continue nextProblem; |
151 |
continue nextProblem; |
151 |
} |
152 |
} |
152 |
} |
153 |
} |
Lines 450-455
Link Here
|
450 |
|
451 |
|
451 |
this.hasBeenAccepted = true; |
452 |
this.hasBeenAccepted = true; |
452 |
this.problemsMap = null; // flush |
453 |
this.problemsMap = null; // flush |
|
|
454 |
this.firstErrors = null; // flush |
453 |
return this; |
455 |
return this; |
454 |
} |
456 |
} |
455 |
|
457 |
|