From 69878cf59474fd8d13a2bd8f50305e03bbe81383 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Thu, 29 Mar 2012 21:57:02 +0000 Subject: [PATCH] Fix unchecked warning git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1307131 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/java/org/apache/lucene/util/Rethrow.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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.java index 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; *

Pulled from http://www.javapuzzlers.com (I * think?).

*/ - +@SuppressWarnings({"unchecked","rawtypes"}) public final class Rethrow { /** * Classy puzzler to rethrow any checked exception as an unchecked one. */ - @SuppressWarnings("all") private static class Rethrower { private void rethrow(Throwable t) throws T { throw (T) t;