mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8272626: Avoid C-style array declarations in java.*
Reviewed-by: dfuchs, alanb
This commit is contained in:
parent
e8f1219d6f
commit
30b0f820ce
54 changed files with 140 additions and 140 deletions
|
@ -399,7 +399,7 @@ public class ThreadGroup implements Thread.UncaughtExceptionHandler {
|
|||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public int enumerate(Thread list[]) {
|
||||
public int enumerate(Thread[] list) {
|
||||
checkAccess();
|
||||
return enumerate(list, 0, true);
|
||||
}
|
||||
|
@ -437,12 +437,12 @@ public class ThreadGroup implements Thread.UncaughtExceptionHandler {
|
|||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public int enumerate(Thread list[], boolean recurse) {
|
||||
public int enumerate(Thread[] list, boolean recurse) {
|
||||
checkAccess();
|
||||
return enumerate(list, 0, recurse);
|
||||
}
|
||||
|
||||
private int enumerate(Thread list[], int n, boolean recurse) {
|
||||
private int enumerate(Thread[] list, int n, boolean recurse) {
|
||||
int ngroupsSnapshot = 0;
|
||||
ThreadGroup[] groupsSnapshot = null;
|
||||
synchronized (this) {
|
||||
|
@ -533,7 +533,7 @@ public class ThreadGroup implements Thread.UncaughtExceptionHandler {
|
|||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public int enumerate(ThreadGroup list[]) {
|
||||
public int enumerate(ThreadGroup[] list) {
|
||||
checkAccess();
|
||||
return enumerate(list, 0, true);
|
||||
}
|
||||
|
@ -571,12 +571,12 @@ public class ThreadGroup implements Thread.UncaughtExceptionHandler {
|
|||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public int enumerate(ThreadGroup list[], boolean recurse) {
|
||||
public int enumerate(ThreadGroup[] list, boolean recurse) {
|
||||
checkAccess();
|
||||
return enumerate(list, 0, recurse);
|
||||
}
|
||||
|
||||
private int enumerate(ThreadGroup list[], int n, boolean recurse) {
|
||||
private int enumerate(ThreadGroup[] list, int n, boolean recurse) {
|
||||
int ngroupsSnapshot = 0;
|
||||
ThreadGroup[] groupsSnapshot = null;
|
||||
synchronized (this) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue