mirror of
https://github.com/apache/lucene.git
synced 2025-03-01 22:09:24 +00:00
Replace "throw exception" with the more idiomatic Junit's "assertNull", following Uwe's advice.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1441831 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
58f2f88254
commit
c4f6e3053e
@ -721,9 +721,7 @@ public abstract class BaseTermVectorsFormatTestCase extends LuceneTestCase {
|
|||||||
reader.close();
|
reader.close();
|
||||||
writer.close();
|
writer.close();
|
||||||
dir.close();
|
dir.close();
|
||||||
if (exception.get() != null) {
|
assertNull("One thread threw an exception", exception.get());
|
||||||
throw new RuntimeException("One thread threw an exception", exception.get());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user