diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2024-08-30 22:07:17 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2024-09-03 16:11:03 +0200 |
commit | 0b531cd6e3f6a71975c208ce67f298a0b672d32d (patch) | |
tree | e38f6fbef17b0a169baf07913362504faeec7ceb /org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java | |
parent | 8baef22711676bf853dfc24ef145122a335f4312 (diff) | |
download | jgit-0b531cd6e3f6a71975c208ce67f298a0b672d32d.tar.gz jgit-0b531cd6e3f6a71975c208ce67f298a0b672d32d.zip |
FS, FS_Posix: remove deprecated #createNewFile(File) method
Change-Id: Id34a0be998eee360e69f74b469c4990afa153c1b
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java index 4433dccc62..8e0b93f082 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java @@ -1763,25 +1763,6 @@ public abstract class FS { } /** - * Create a new file. See {@link java.io.File#createNewFile()}. Subclasses - * of this class may take care to provide a safe implementation for this - * even if {@link #supportsAtomicCreateNewFile()} is <code>false</code> - * - * @param path - * the file to be created - * @return <code>true</code> if the file was created, <code>false</code> if - * the file already existed - * @throws java.io.IOException - * if an IO error occurred - * @deprecated use {@link #createNewFileAtomic(File)} instead - * @since 4.5 - */ - @Deprecated - public boolean createNewFile(File path) throws IOException { - return path.createNewFile(); - } - - /** * A token representing a file created by * {@link #createNewFileAtomic(File)}. The token must be retained until the * file has been deleted in order to guarantee that the unique file was |