You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2012/03/29 23:57:03 UTC
svn commit: r1307131 -
/lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/Rethrow.java
Author: uschindler
Date: Thu Mar 29 21:57:02 2012
New Revision: 1307131
URL: http://svn.apache.org/viewvc?rev=1307131&view=rev
Log:
Fix unchecked warning
Modified:
lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/Rethrow.java
Modified: lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/Rethrow.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/Rethrow.java?rev=1307131&r1=1307130&r2=1307131&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/Rethrow.java (original)
+++ lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/Rethrow.java Thu Mar 29 21:57:02 2012
@@ -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;