提交 11fe97e5 编写于 作者: P peterz

6387579: Usage of package-private class as parameter of a method...

6387579: Usage of package-private class as parameter of a method (javax.swing.tree.DefaultTreeSelectionModel)
Reviewed-by: rupashka
上级 4deda7db
...@@ -1069,8 +1069,11 @@ public class DefaultTreeSelectionModel implements Cloneable, Serializable, TreeS ...@@ -1069,8 +1069,11 @@ public class DefaultTreeSelectionModel implements Cloneable, Serializable, TreeS
/** /**
* Notifies listeners of a change in path. changePaths should contain * Notifies listeners of a change in path. changePaths should contain
* instances of PathPlaceHolder. * instances of PathPlaceHolder.
*
* @deprecated As of JDK version 1.7
*/ */
protected void notifyPathChange(Vector<PathPlaceHolder> changedPaths, @Deprecated
protected void notifyPathChange(Vector changedPaths,
TreePath oldLeadSelection) { TreePath oldLeadSelection) {
int cPathCount = changedPaths.size(); int cPathCount = changedPaths.size();
boolean[] newness = new boolean[cPathCount]; boolean[] newness = new boolean[cPathCount];
...@@ -1078,7 +1081,7 @@ public class DefaultTreeSelectionModel implements Cloneable, Serializable, TreeS ...@@ -1078,7 +1081,7 @@ public class DefaultTreeSelectionModel implements Cloneable, Serializable, TreeS
PathPlaceHolder placeholder; PathPlaceHolder placeholder;
for(int counter = 0; counter < cPathCount; counter++) { for(int counter = 0; counter < cPathCount; counter++) {
placeholder = changedPaths.elementAt(counter); placeholder = (PathPlaceHolder) changedPaths.elementAt(counter);
newness[counter] = placeholder.isNew; newness[counter] = placeholder.isNew;
paths[counter] = placeholder.path; paths[counter] = placeholder.path;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册