Rename package-private constant consistently.
MODIFY
src/main/java/org/apache/commons/io/monitor/FileAlterationObserver.java
src/main/java/org/apache/commons/io/monitor/FileAlterationObserver.java
@@ -324,7 +324,7 @@ public void checkAndNotify() {
*/
private void checkAndNotify(final FileEntry parent, final FileEntry[] previous, final File[] files) {
int c = 0;
- final FileEntry[] current = files.length > 0 ? new FileEntry[files.length] : FileEntry.EMPTY_ENTRIES;
+ final FileEntry[] current = files.length > 0 ? new FileEntry[files.length] : FileEntry.EMPTY_FILE_ENTRY_ARRAY;
for (final FileEntry entry : previous) {
while (c < files.length && comparator.compare(entry.getFile(), files[c]) > 0) {
current[c] = createFileEntry(parent, files[c]);
@@ -371,7 +371,7 @@ private FileEntry createFileEntry(final FileEntry parent, final File file) {
*/
private FileEntry[] doListFiles(final File file, final FileEntry entry) {
final File[] files = listFiles(file);
- final FileEntry[] children = files.length > 0 ? new FileEntry[files.length] : FileEntry.EMPTY_ENTRIES;
+ final FileEntry[] children = files.length > 0 ? new FileEntry[files.length] : FileEntry.EMPTY_FILE_ENTRY_ARRAY;
for (int i = 0; i < files.length; i++) {
children[i] = createFileEntry(entry, files[i]);
}

MODIFY
src/main/java/org/apache/commons/io/monitor/FileEntry.java
src/main/java/org/apache/commons/io/monitor/FileEntry.java
private static final long serialVersionUID = -2505664948818681153L;
- static final FileEntry[] EMPTY_ENTRIES = new FileEntry[0];
+ static final FileEntry[] EMPTY_FILE_ENTRY_ARRAY = new FileEntry[0];
private final FileEntry parent;
private FileEntry[] children;
@@ -154,7 +154,7 @@ public int getLevel() {
* directory is empty
*/
public FileEntry[] getChildren() {
- return children != null ? children : EMPTY_ENTRIES;
+ return children != null ? children : EMPTY_FILE_ENTRY_ARRAY;
}
/**

Rename package-private constant consistently.