Internal: temporarily ban buggy IOUtils methods with forbidden

Closes #8375
This commit is contained in:
Robert Muir 2014-11-07 06:31:39 -05:00
parent a49b39cc21
commit b8421e55fd
1 changed files with 6 additions and 0 deletions

View File

@ -3,3 +3,9 @@ java.net.URL#getPath()
java.net.URL#getFile() java.net.URL#getFile()
java.io.File#delete() @ use Files.delete for real exception, IOUtils.deleteFilesIgnoringExceptions if you dont care java.io.File#delete() @ use Files.delete for real exception, IOUtils.deleteFilesIgnoringExceptions if you dont care
# temporary situation, until we upgrade with LUCENE-6051 fix
# (at which point forbidden apis will fail and we remove this section)
@defaultMessage Use FileSystemUtils methods for now to workaround LUCENE-6051
org.apache.lucene.util.IOUtils#deleteFilesIgnoringExceptions(java.lang.Iterable)
org.apache.lucene.util.IOUtils#deleteFilesIfExist(java.lang.Iterable)