in apache-rat-core/src/main/java/org/apache/rat/walker/FileNameComparator.java [26:42]
public int compare(File firstFile, File secondFile) {
int result = 0;
if (firstFile == null) {
if (secondFile != null) {
result = 1;
}
} else {
if (secondFile == null) {
result = -1;
} else {
final String firstName = firstFile.getName();
final String secondName = secondFile.getName();
result = firstName.compareTo(secondName);
}
}
return result;
}