use the correct exception subclass

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1385055 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-09-15 12:45:16 +00:00
parent 6730bbb71d
commit 9bb7e5e97b
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
public final class SetOnce<T> {
/** Thrown when {@link SetOnce#set(Object)} is called more than once. */
public static final class AlreadySetException extends RuntimeException {
public static final class AlreadySetException extends IllegalStateException {
public AlreadySetException() {
super("The object cannot be set twice!");
}