mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 02:24:40 +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) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 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
|
||||
|
@ -122,7 +122,7 @@ package javax.swing;
|
|||
public class SizeSequence {
|
||||
|
||||
private static int[] emptyArray = new int[0];
|
||||
private int a[];
|
||||
private int[] a;
|
||||
|
||||
/**
|
||||
* Creates a new <code>SizeSequence</code> object
|
||||
|
@ -360,7 +360,7 @@ public class SizeSequence {
|
|||
* (<code>0 <= start < (getSizes().length)) AND (length >= 0)</code>
|
||||
*/
|
||||
public void insertEntries(int start, int length, int value) {
|
||||
int sizes[] = getSizes();
|
||||
int[] sizes = getSizes();
|
||||
int end = start + length;
|
||||
int n = a.length + length;
|
||||
a = new int[n];
|
||||
|
@ -390,7 +390,7 @@ public class SizeSequence {
|
|||
* @param length the number of entries to be removed
|
||||
*/
|
||||
public void removeEntries(int start, int length) {
|
||||
int sizes[] = getSizes();
|
||||
int[] sizes = getSizes();
|
||||
int end = start + length;
|
||||
int n = a.length - length;
|
||||
a = new int[n];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue