< prev index next >
src/java.desktop/share/classes/com/sun/media/sound/RealTimeSequencer.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -1124,11 +1124,11 @@
for (int i = 0; i < 128; i++) {
controllers[i] = i;
}
return;
}
- int temp[] = new int[ controllers.length + c.length ];
+ int[] temp = new int[ controllers.length + c.length ];
int elements;
// first add what we have
for(int i=0; i<controllers.length; i++) {
temp[i] = controllers[i];
@@ -1147,11 +1147,11 @@
if (!flag) {
temp[elements++] = c[i];
}
}
// now keep only the elements we need
- int newc[] = new int[ elements ];
+ int[] newc = new int[ elements ];
for(int i=0; i<elements; i++){
newc[i] = temp[i];
}
controllers = newc;
}
@@ -1159,11 +1159,11 @@
private void removeControllers(int[] c) {
if (c==null) {
controllers = new int[0];
} else {
- int temp[] = new int[ controllers.length ];
+ int[] temp = new int[ controllers.length ];
int elements = 0;
for(int i=0; i<controllers.length; i++){
boolean flag = false;
@@ -1176,11 +1176,11 @@
if (!flag){
temp[elements++] = controllers[i];
}
}
// now keep only the elements remaining
- int newc[] = new int[ elements ];
+ int[] newc = new int[ elements ];
for(int i=0; i<elements; i++) {
newc[i] = temp[i];
}
controllers = newc;
@@ -1193,11 +1193,11 @@
// so others can't mess with it
if (controllers == null) {
return null;
}
- int c[] = new int[controllers.length];
+ int[] c = new int[controllers.length];
for(int i=0; i<controllers.length; i++){
c[i] = controllers[i];
}
return c;
< prev index next >