diff --git a/base/src/main/java/io/spine/base/Environment.java b/base/src/main/java/io/spine/base/Environment.java index f1a1ffd077..bfa8702caa 100644 --- a/base/src/main/java/io/spine/base/Environment.java +++ b/base/src/main/java/io/spine/base/Environment.java @@ -27,15 +27,16 @@ import org.checkerframework.checker.nullness.qual.Nullable; import static com.google.common.base.Preconditions.checkNotNull; +import static io.spine.util.Exceptions.newIllegalStateException; /** * Provides information about the environment (current platform used, etc.). * *

Environment Type Detection

* - *

Current implementation allows to {@linkplain #is(EnvironmentType) check} whether a given - * environment is currently the active one and {@linkplain #type() get an instance of the current - * environment type}. Two environment types exist out of the box: + *

Current implementation allows to {@linkplain #is(Class) check} the type of the current + * environment, or {@linkplain #type() get the instance of the current environment}. + * Two environment types exist out of the box: * *