< prev index next >

src/java.desktop/share/classes/javax/swing/tree/VariableHeightLayoutCache.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 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

@@ -407,11 +407,11 @@
      *
      * @param e the <code>TreeModelEvent</code> of interest
      */
     public void treeNodesChanged(TreeModelEvent e) {
         if(e != null) {
-            int               changedIndexs[]  = e.getChildIndices();
+            int[]               changedIndexs  = e.getChildIndices();
             TreeStateNode     changedNode = getNodeForPath(
                     SwingUtilities2.getTreePath(e, getModel()), false, false);
 
             if(changedNode != null) {
                 Object            changedValue = changedNode.getValue();

@@ -454,11 +454,11 @@
      *
      * @param e the <code>TreeModelEvent</code> of interest
      */
     public void treeNodesInserted(TreeModelEvent e) {
         if(e != null) {
-            int               changedIndexs[] = e.getChildIndices();
+            int[]               changedIndexs = e.getChildIndices();
             TreeStateNode     changedParentNode = getNodeForPath(
                     SwingUtilities2.getTreePath(e, getModel()), false, false);
             /* Only need to update the children if the node has been
                expanded once. */
             // PENDING(scott): make sure childIndexs is sorted!

@@ -520,11 +520,11 @@
      *
      * @param e the <code>TreeModelEvent</code> of interest
      */
     public void treeNodesRemoved(TreeModelEvent e) {
         if(e != null) {
-            int               changedIndexs[];
+            int[]               changedIndexs;
             TreeStateNode     changedParentNode;
 
             changedIndexs = e.getChildIndices();
             changedParentNode = getNodeForPath(SwingUtilities2.getTreePath(e, getModel()), false, false);
             // PENDING(scott): make sure that changedIndexs are sorted in
< prev index next >