A different way to return an empty array is to use a constant as all empty arrays of a given type are the same.
private static final File[] NO_FILES = {};
private static File[] bar(){
return NO_FILES;
}
A different way to return an empty array is to use a constant as all empty arrays of a given type are the same.
private static final File[] NO_FILES = {};
private static File[] bar(){
return NO_FILES;
}