mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 11:53:49 +07:00
Don't log any errors for CustomRegionTreeElements, they are perfectly Ok
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package com.intellij.ide.structureView.impl.java;
|
||||
|
||||
import com.intellij.ide.structureView.customRegions.CustomRegionTreeElement;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -47,7 +48,9 @@ public class VisibilityComparator implements Comparator {
|
||||
return ((AccessLevelProvider)element).getAccessLevel() * (GROUP_ACCESS_SUBLEVEL + 1) + ((AccessLevelProvider)element).getSubLevel();
|
||||
}
|
||||
else {
|
||||
LOG.error(element.getClass().getName());
|
||||
if (!(element instanceof CustomRegionTreeElement)) {
|
||||
LOG.error(element.getClass().getName());
|
||||
}
|
||||
return UNKNOWN_ACCESS_LEVEL;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user