mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-CR-51695: use ArrayUtil in ListFocusTraversalPolicy (IDEA-119140)
(cherry picked from commit 8ee32d9825620b5dcd5dc4652bf16fe20c6dfcb8) GitOrigin-RevId: 8aeaad86302fcc4cc9e8545ecca5805837780a29
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d8f21a125a
commit
b9809b999a
@@ -1,6 +1,7 @@
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.ui;
|
||||
|
||||
import com.intellij.util.ArrayUtil;
|
||||
import gnu.trove.TObjectIntHashMap;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -22,12 +23,12 @@ public class ListFocusTraversalPolicy extends ContainerOrderFocusTraversalPolicy
|
||||
|
||||
@Override
|
||||
public Component getFirstComponent(Container aContainer) {
|
||||
return myComponents[0];
|
||||
return ArrayUtil.getFirstElement(myComponents);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Component getLastComponent(Container aContainer) {
|
||||
return myComponents[myComponents.length - 1];
|
||||
return ArrayUtil.getLastElement(myComponents);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user