SOLR-1430 -- AbstractSolrTestCase ignores arguments for commit and optimize commands

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@815247 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2009-09-15 10:05:22 +00:00
parent 77126a3782
commit 91e071d18e
2 changed files with 3 additions and 3 deletions

View File

@ -207,13 +207,13 @@ public abstract class AbstractSolrTestCase extends TestCase {
* @see TestHarness#optimize * @see TestHarness#optimize
*/ */
public String optimize(String... args) { public String optimize(String... args) {
return h.optimize(); return h.optimize(args);
} }
/** /**
* @see TestHarness#commit * @see TestHarness#commit
*/ */
public String commit(String... args) { public String commit(String... args) {
return h.commit(); return h.commit(args);
} }
/** /**

View File

@ -489,7 +489,7 @@ public class TestHarness {
if (null == args || 0 == args.length) { if (null == args || 0 == args.length) {
XML.writeXML(r, tag, null); XML.writeXML(r, tag, null);
} else { } else {
XML.writeXML(r, tag, null, (Object)args); XML.writeXML(r, tag, null, (Object[])args);
} }
return r.getBuffer().toString(); return r.getBuffer().toString();
} catch (IOException e) { } catch (IOException e) {