Author: epbernard
Date: 2008-06-16 13:15:32 -0400 (Mon, 16 Jun 2008)
New Revision: 14771
Modified:
search/trunk/src/java/org/hibernate/search/reader/SharingBufferReaderProvider.java
Log:
unnecessary cast
Modified:
search/trunk/src/java/org/hibernate/search/reader/SharingBufferReaderProvider.java
===================================================================
---
search/trunk/src/java/org/hibernate/search/reader/SharingBufferReaderProvider.java 2008-06-16
15:43:48 UTC (rev 14770)
+++
search/trunk/src/java/org/hibernate/search/reader/SharingBufferReaderProvider.java 2008-06-16
17:15:32 UTC (rev 14771)
@@ -48,7 +48,7 @@
if ( multiReader == null ) return;
IndexReader[] readers;
if ( multiReader instanceof MultiReader ) {
- readers = (IndexReader[]) ReaderProviderHelper.getSubReadersFromMultiReader(
(MultiReader) multiReader );
+ readers = ReaderProviderHelper.getSubReadersFromMultiReader( (MultiReader) multiReader
);
}
else {
throw new AssertionFailure( "Everything should be wrapped in a MultiReader"
);