src/java.base/windows/classes/sun/nio/fs/WindowsFileStore.java
changeset 53018 8bf9268df0e2
parent 47428 d72d7d55c765
child 58897 76638c631869
equal deleted inserted replaced
53017:e10a1f7aaa13 53018:8bf9268df0e2
    50         this.volInfo = GetVolumeInformation(root);
    50         this.volInfo = GetVolumeInformation(root);
    51         this.volType = GetDriveType(root);
    51         this.volType = GetDriveType(root);
    52 
    52 
    53         // file store "display name" is the volume name if available
    53         // file store "display name" is the volume name if available
    54         String vol = volInfo.volumeName();
    54         String vol = volInfo.volumeName();
    55         if (vol.length() > 0) {
    55         if (!vol.isEmpty()) {
    56             this.displayName = vol;
    56             this.displayName = vol;
    57         } else {
    57         } else {
    58             // TBD - should we map all types? Does this need to be localized?
    58             // TBD - should we map all types? Does this need to be localized?
    59             this.displayName = (volType == DRIVE_REMOVABLE) ? "Removable Disk" : "";
    59             this.displayName = (volType == DRIVE_REMOVABLE) ? "Removable Disk" : "";
    60         }
    60         }