LUCENE-2652: QuickFix for Clover OOM

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@998507 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Simon Willnauer 2010-09-18 18:08:40 +00:00
parent fb9e5a11fc
commit 93f8a01df7
1 changed files with 15 additions and 15 deletions

View File

@ -863,21 +863,21 @@ public abstract class LuceneTestCase extends Assert {
public LocalizedTestCaseRunner(Class<?> clazz) throws InitializationError { public LocalizedTestCaseRunner(Class<?> clazz) throws InitializationError {
super(clazz); super(clazz);
} }
// FIXME see LUCENE-2652
@Override // @Override
protected void runChild(FrameworkMethod arg0, RunNotifier arg1) { // protected void runChild(FrameworkMethod arg0, RunNotifier arg1) {
arg1.addListener(listener); // arg1.addListener(listener);
locale = defaultLocale; // locale = defaultLocale;
super.runChild(arg0, arg1); // super.runChild(arg0, arg1);
//
for (Locale other : Locale.getAvailableLocales()) { // for (Locale other : Locale.getAvailableLocales()) {
locale = other; // locale = other;
Locale.setDefault(locale); // Locale.setDefault(locale);
super.runChild(arg0, arg1); // super.runChild(arg0, arg1);
} // }
//
Locale.setDefault(defaultLocale); // Locale.setDefault(defaultLocale);
} // }
} }
/** /**