Apache Solr open-source search software
Fix unchecked warning
Uwe Schindler69878cf59474
diff --git a/lucene/test-framework/src/java/org/apache/lucene/util/Rethrow.java b/lucene/test-framework/src/java/org/apache/lucene/util/Rethrow.javaindex eceb4c2030a..5440706a0c0 100644--- a/lucene/test-framework/src/java/org/apache/lucene/util/Rethrow.java+++ b/lucene/test-framework/src/java/org/apache/lucene/util/Rethrow.java@@ -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;