This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
* @since 4.48
*/
public static File normalizeFile(File file) {
File retFile;
if ((Utilities.isWindows () || (Utilities.getOperatingSystem () == Utilities.OS_OS2))) {
file = normalizeFileOnWindows(file);
retFile = normalizeFileOnWindows(file);
} else if (Utilities.getOperatingSystem() == Utilities.OS_MAC) {
file = normalizeFileOnMac(file);
retFile = normalizeFileOnMac(file);
} else {
file = normalizeFileOnUnixAlike(file);
retFile = normalizeFileOnUnixAlike(file);
}
return file;
return file.equals(retFile) ? file : retFile;
private static File normalizeFileOnUnixAlike(File file) {