From 1e3aa5cee43b75229478a8516438c0495ec0f81f Mon Sep 17 00:00:00 2001 From: Shalin Shekhar Mangar Date: Fri, 17 Jun 2011 07:05:29 +0000 Subject: [PATCH] SOLR-2551 -- Use File.delete instead of File.setWritable to be Java 5 compatible git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1136789 13f79535-47bb-0310-9956-ffa450edef68 --- .../solr/handler/dataimport/TestSqlEntityProcessorDelta.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/contrib/dataimporthandler/src/test/java/org/apache/solr/handler/dataimport/TestSqlEntityProcessorDelta.java b/solr/contrib/dataimporthandler/src/test/java/org/apache/solr/handler/dataimport/TestSqlEntityProcessorDelta.java index 4cddebaa2e2..71c2c4f5687 100644 --- a/solr/contrib/dataimporthandler/src/test/java/org/apache/solr/handler/dataimport/TestSqlEntityProcessorDelta.java +++ b/solr/contrib/dataimporthandler/src/test/java/org/apache/solr/handler/dataimport/TestSqlEntityProcessorDelta.java @@ -120,7 +120,7 @@ public class TestSqlEntityProcessorDelta extends AbstractDataImportHandlerTestCa runFullImport(dataConfig_delta); assertQ(req("id:1"), "//*[@numFound='0']"); } finally { - f.setWritable(true); + f.delete(); } } }