LUCENE-3969: add whitespace to analyzer description

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene3969@1311667 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-04-10 10:28:24 +00:00
parent 9e98ec186c
commit a764c0d021
1 changed files with 3 additions and 0 deletions

View File

@ -569,9 +569,12 @@ public class TestRandomChains extends BaseTokenStreamTestCase {
private <T> T createComponent(Constructor<T> ctor, Object[] args, StringBuilder descr) { private <T> T createComponent(Constructor<T> ctor, Object[] args, StringBuilder descr) {
try { try {
final T instance = ctor.newInstance(args); final T instance = ctor.newInstance(args);
/*
if (descr.length() > 0) { if (descr.length() > 0) {
descr.append(","); descr.append(",");
} }
*/
descr.append("\n ");
descr.append(ctor.getDeclaringClass().getName()); descr.append(ctor.getDeclaringClass().getName());
String params = Arrays.toString(args); String params = Arrays.toString(args);
params = params.substring(1, params.length()-1); params = params.substring(1, params.length()-1);