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.

View | Details | Raw Unified | Return to bug 51755
Collapse All | Expand All

(-)FileUtil.java (-4 / +5 lines)
Lines 956-969 Link Here
956
     * @since 4.48
956
     * @since 4.48
957
     */
957
     */
958
    public static File normalizeFile(File file) {
958
    public static File normalizeFile(File file) {
959
        File retFile;
959
        if ((Utilities.isWindows () || (Utilities.getOperatingSystem () == Utilities.OS_OS2))) {
960
        if ((Utilities.isWindows () || (Utilities.getOperatingSystem () == Utilities.OS_OS2))) {
960
            file = normalizeFileOnWindows(file);
961
            retFile = normalizeFileOnWindows(file);
961
        } else if (Utilities.getOperatingSystem() == Utilities.OS_MAC) {
962
        } else if (Utilities.getOperatingSystem() == Utilities.OS_MAC) {
962
            file = normalizeFileOnMac(file);
963
            retFile = normalizeFileOnMac(file);
963
        } else {
964
        } else {
964
            file = normalizeFileOnUnixAlike(file);
965
            retFile = normalizeFileOnUnixAlike(file);
965
        }
966
        }
966
        return file;
967
        return file.equals(retFile) ? file : retFile;
967
    }
968
    }
968
969
969
    private static File normalizeFileOnUnixAlike(File file) {
970
    private static File normalizeFileOnUnixAlike(File file) {

Return to bug 51755