diff options
| author | Martin Balao <mbalao@openjdk.org> | 2022-01-25 20:16:38 +0000 |
|---|---|---|
| committer | Christoph Langer <clanger@openjdk.org> | 2022-03-31 23:28:22 +0200 |
| commit | c9f70519ff3340039467d3715778775b9627fca8 (patch) | |
| tree | 83ff4c2064a212eea349846ed283cd07163ff6e4 /src/java.base/share/classes/java/io/FileSystem.java | |
| parent | 32a5e5d3e88dcb25c8dccfd97d8312f29502eb5b (diff) | |
| download | openjdk-c9f70519ff3340039467d3715778775b9627fca8.tar.gz openjdk-c9f70519ff3340039467d3715778775b9627fca8.zip | |
8278356: Improve file creation
Backport-of: 3c75bf069973c1d05b94cb42edf6eb62820b1ef5
Diffstat (limited to 'src/java.base/share/classes/java/io/FileSystem.java')
| -rw-r--r-- | src/java.base/share/classes/java/io/FileSystem.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/java.base/share/classes/java/io/FileSystem.java b/src/java.base/share/classes/java/io/FileSystem.java index a1cea852d95..b41120bf360 100644 --- a/src/java.base/share/classes/java/io/FileSystem.java +++ b/src/java.base/share/classes/java/io/FileSystem.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2022, 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 @@ -88,6 +88,11 @@ abstract class FileSystem { public abstract boolean isAbsolute(File f); /** + * Tell whether the given abstract pathname is invalid. + */ + public abstract boolean isInvalid(File f); + + /** * Resolve the given abstract pathname into absolute form. Invoked by the * getAbsolutePath and getCanonicalPath methods in the File class. */ |
