mirror of https://github.com/apache/lucene.git
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:
parent
6730bbb71d
commit
9bb7e5e97b
|
@ -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!");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue