mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
java: optimization in inspection results view
GitOrigin-RevId: 8dcc181f88c349433ce3a152568020ca076eff62
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6d9fe890a9
commit
68ea732817
+2
-2
@@ -1,5 +1,4 @@
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.codeInspection.ui;
|
||||
|
||||
import com.intellij.codeInspection.CommonProblemDescriptor;
|
||||
@@ -29,6 +28,7 @@ public final class InspectionResultsViewComparator implements Comparator<Inspect
|
||||
|
||||
@Override
|
||||
public int compare(InspectionTreeNode node1, InspectionTreeNode node2) {
|
||||
if (node1 == node2) return 0;
|
||||
if (node1 instanceof InspectionSeverityGroupNode groupNode1 && node2 instanceof InspectionSeverityGroupNode groupNode2) {
|
||||
return -groupNode1.getSeverityRegistrar().compare(groupNode1.getSeverityLevel().getSeverity(), groupNode2.getSeverityLevel().getSeverity());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user