Java: make field final and fix typo

GitOrigin-RevId: 28eda1b4756f8a326e03ccb68d0ba54d22a3e9ba
This commit is contained in:
Bas Leijdekkers
2023-03-16 14:49:55 +01:00
committed by intellij-monorepo-bot
parent 1e1c893f1c
commit 6780ea2deb
2 changed files with 5 additions and 33 deletions

View File

@@ -1,18 +1,4 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ide.structureView.impl.java;
import com.intellij.ide.structureView.customRegions.CustomRegionTreeElement;
@@ -24,7 +10,7 @@ import java.util.Comparator;
public class VisibilityComparator implements Comparator {
private static final Logger LOG = Logger.getInstance(VisibilityComparator.class);
private static final int GROUP_ACCESS_SUBLEVEL = 1;
public static Comparator IMSTANCE = new VisibilityComparator(null);
public static final Comparator INSTANCE = new VisibilityComparator(null);
private final Comparator myNextComparator;
private static final int UNKNOWN_ACCESS_LEVEL = -1;
@@ -52,6 +38,6 @@ public class VisibilityComparator implements Comparator {
LOG.error(element.getClass().getName());
}
return UNKNOWN_ACCESS_LEVEL;
}
}
}
}

View File

@@ -1,18 +1,4 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ide.structureView.impl.java;
import com.intellij.icons.AllIcons;
@@ -51,7 +37,7 @@ public class VisibilitySorter implements Sorter{
@Override
@NotNull
public Comparator getComparator() {
return VisibilityComparator.IMSTANCE;
return VisibilityComparator.INSTANCE;
}
@Override