Skip to content
Snippets Groups Projects
Commit 2e2be993 authored by Vincent Aravantinos's avatar Vincent Aravantinos
Browse files

remove warning

parent 19bcd4ac
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ import org.fortiss.tooling.kernel.ui.util.ConstraintsUIUtils;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 52707DBCEE347F7C97BC4FF215749B4C
* @ConQAT.Rating YELLOW Hash: 4529707A6BED0667CF19BAC17EF40519
*/
public class MarkerService implements IMarkerService, IPersistencyServiceListener {
/** The singleton service instance. */
......@@ -297,8 +297,9 @@ public class MarkerService implements IMarkerService, IPersistencyServiceListene
} else {
Collections.sort(list, IConstraintViolation.SEVERITY_COMPARATOR);
// list is guaranteed to be non-empty by above check => get(0) is fine
highestSeverityMap.put(eo, list.get(0).getSeverity());
highestSeverityChildMap.put(eo, list.get(0).getSource());
IConstraintViolation<? extends EObject> violation = list.get(0);
highestSeverityMap.put(eo, violation.getSeverity());
highestSeverityChildMap.put(eo, violation.getSource());
}
}
// project severity to parent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment