src/share/classes/javax/swing/filechooser/FileSystemView.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 581,590 ****
--- 581,592 ----
static class FileSystemRoot extends File {
+ private static final long serialVersionUID = 718975903156136977L;
+
public FileSystemRoot(File f) {
super(f,"");
}
public FileSystemRoot(String s) {
*** 773,782 ****
--- 775,785 ----
}
}
return super.createFileObject(path);
}
+ @SuppressWarnings("serial") // anonymous class
protected File createFileSystemRoot(File f) {
// Problem: Removable drives on Windows return false on f.exists()
// Workaround: Override exists() to always return true.
return new FileSystemRoot(f) {
public boolean exists() {