mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
insert standart severity into list based on order (IDEA-181962)
This commit is contained in:
+2
-4
@@ -167,13 +167,11 @@ public class SeverityRegistrar implements Comparator<HighlightSeverity> {
|
||||
else {
|
||||
//enforce include all known
|
||||
List<HighlightSeverity> list = getOrderAsList(orderMap);
|
||||
for (int i = 0; i < knownSeverities.size(); i++) {
|
||||
HighlightSeverity stdSeverity = knownSeverities.get(i);
|
||||
for (HighlightSeverity stdSeverity : knownSeverities) {
|
||||
if (!list.contains(stdSeverity)) {
|
||||
for (int oIdx = 0; oIdx < list.size(); oIdx++) {
|
||||
HighlightSeverity orderSeverity = list.get(oIdx);
|
||||
HighlightInfoType type = STANDARD_SEVERITIES.get(orderSeverity.getName());
|
||||
if (type != null && knownSeverities.indexOf(type.getSeverity(null)) > i) {
|
||||
if (orderSeverity.myVal > stdSeverity.myVal) {
|
||||
list.add(oIdx, stdSeverity);
|
||||
myReadOrder = null;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user