< prev index next >
src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1998, 2014, 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
--- 1,7 ----
/*
! * Copyright (c) 1998, 2015, 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
*** 217,232 ****
--- 217,234 ----
return fileCache.get(index);
}
/**
* Obsolete - not used.
+ * @param e list data event
*/
public void intervalAdded(ListDataEvent e) {
}
/**
* Obsolete - not used.
+ * @param e list data event
*/
public void intervalRemoved(ListDataEvent e) {
}
/**
*** 236,246 ****
*/
protected void sort(Vector<? extends File> v){
ShellFolder.sort(v);
}
! // Obsolete - not used
protected boolean lt(File a, File b) {
// First ignore case when comparing
int diff = a.getName().toLowerCase().compareTo(b.getName().toLowerCase());
if (diff != 0) {
return diff < 0;
--- 238,253 ----
*/
protected void sort(Vector<? extends File> v){
ShellFolder.sort(v);
}
! /**
! * Obsolete - not used
! * @return a comparison of the file names
! * @param a a file
! * @param b another file
! */
protected boolean lt(File a, File b) {
// First ignore case when comparing
int diff = a.getName().toLowerCase().compareTo(b.getName().toLowerCase());
if (diff != 0) {
return diff < 0;
< prev index next >