lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1637284 - in /lucene/dev/branches/branch_5x: ./ lucene/ lucene/core/ lucene/core/src/java/org/apache/lucene/util/IOUtils.java lucene/core/src/test/org/apache/lucene/util/TestIOUtils.java
Date Fri, 07 Nov 2014 01:23:59 GMT
Author: rmuir
Date: Fri Nov  7 01:23:59 2014
New Revision: 1637284

URL: http://svn.apache.org/r1637284
Log:
LUCENE-6051: don't use trappy Iterable<Path> in helper functions

Added:
    lucene/dev/branches/branch_5x/lucene/core/src/test/org/apache/lucene/util/TestIOUtils.java
      - copied unchanged from r1637278, lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/util/TestIOUtils.java
Modified:
    lucene/dev/branches/branch_5x/   (props changed)
    lucene/dev/branches/branch_5x/lucene/   (props changed)
    lucene/dev/branches/branch_5x/lucene/core/   (props changed)
    lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/IOUtils.java

Modified: lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/IOUtils.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/IOUtils.java?rev=1637284&r1=1637283&r2=1637284&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/IOUtils.java
(original)
+++ lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/IOUtils.java
Fri Nov  7 01:23:59 2014
@@ -37,6 +37,7 @@ import java.nio.file.Path;
 import java.nio.file.StandardOpenOption;
 import java.nio.file.attribute.BasicFileAttributes;
 import java.util.Arrays;
+import java.util.Collection;
 import java.util.LinkedHashMap;
 import java.util.Map;
 
@@ -215,7 +216,7 @@ public final class IOUtils {
    * <p>
    * Some of the files may be null, if so they are ignored.
    */
-  public static void deleteFilesIgnoringExceptions(Iterable<? extends Path> files)
{
+  public static void deleteFilesIgnoringExceptions(Collection<? extends Path> files)
{
     for (Path name : files) {
       if (name != null) {
         try {
@@ -249,7 +250,7 @@ public final class IOUtils {
    * 
    * @param files files to delete
    */
-  public static void deleteFilesIfExist(Iterable<? extends Path> files) throws IOException
{
+  public static void deleteFilesIfExist(Collection<? extends Path> files) throws IOException
{
     Throwable th = null;
 
     for (Path file : files) {



Mime
View raw message