Fix unchecked warning

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1307131 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2012-03-29 21:57:02 +00:00
parent 1b61bbd592
commit 69878cf594
1 changed files with 1 additions and 2 deletions

View File

@ -24,12 +24,11 @@ package org.apache.lucene.util;
* <p>Pulled from http://www.javapuzzlers.com (I
* think?).</p>
*/
@SuppressWarnings({"unchecked","rawtypes"})
public final class Rethrow {
/**
* Classy puzzler to rethrow any checked exception as an unchecked one.
*/
@SuppressWarnings("all")
private static class Rethrower<T extends Throwable> {
private void rethrow(Throwable t) throws T {
throw (T) t;