mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 18:14:38 +02:00
8211300: Convert C-style array declarations in JDK client code
Reviewed-by: prr, serb
This commit is contained in:
parent
c33f1a61de
commit
fc807d0914
339 changed files with 1645 additions and 1645 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1000,7 +1000,7 @@ public class JTabbedPane extends JComponent
|
|||
// container's children array indices, so make sure we
|
||||
// remove the correct child!
|
||||
if (component != null) {
|
||||
Component components[] = getComponents();
|
||||
Component[] components = getComponents();
|
||||
for (int i = components.length; --i >= 0; ) {
|
||||
if (components[i] == component) {
|
||||
super.remove(i);
|
||||
|
@ -1034,7 +1034,7 @@ public class JTabbedPane extends JComponent
|
|||
} else {
|
||||
// Container#remove(comp) invokes Container#remove(int)
|
||||
// so make sure JTabbedPane#remove(int) isn't called here
|
||||
Component children[] = getComponents();
|
||||
Component[] children = getComponents();
|
||||
for (int i=0; i < children.length; i++) {
|
||||
if (component == children[i]) {
|
||||
super.remove(i);
|
||||
|
@ -1548,7 +1548,7 @@ public class JTabbedPane extends JComponent
|
|||
// why not if (page.component.getParent() == this) remove(component)
|
||||
synchronized(getTreeLock()) {
|
||||
int count = getComponentCount();
|
||||
Component children[] = getComponents();
|
||||
Component[] children = getComponents();
|
||||
for (int i = 0; i < count; i++) {
|
||||
if (children[i] == page.component) {
|
||||
super.remove(i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue