diff --git a/.idea/misc.xml b/.idea/misc.xml index 90c11c2586..deb97c8116 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,8 +1,5 @@ - - - diff --git a/base-validating-builders/buildSrc/src/main/kotlin/io/spine/gradle/internal/deps.kt b/base-validating-builders/buildSrc/src/main/kotlin/io/spine/gradle/internal/deps.kt index 6846093b1f..77a10789fe 100644 --- a/base-validating-builders/buildSrc/src/main/kotlin/io/spine/gradle/internal/deps.kt +++ b/base-validating-builders/buildSrc/src/main/kotlin/io/spine/gradle/internal/deps.kt @@ -71,7 +71,7 @@ object Versions { val errorProne = "2.3.4" val errorProneJavac = "9+181-r4173-1" // taken from here: https://github.com/tbroyer/gradle-errorprone-plugin/blob/v0.8/build.gradle.kts val errorPronePlugin = "1.1.1" - val pmd = "6.20.0" + val pmd = "6.24.0" val checkstyle = "8.29" val protobufPlugin = "0.8.12" val appengineApi = "1.9.79" diff --git a/base/src/main/java/io/spine/base/Environment.java b/base/src/main/java/io/spine/base/Environment.java index bfa8702caa..c3d829dbd6 100644 --- a/base/src/main/java/io/spine/base/Environment.java +++ b/base/src/main/java/io/spine/base/Environment.java @@ -23,10 +23,12 @@ import com.google.common.annotations.VisibleForTesting; import com.google.common.collect.ImmutableList; import com.google.errorprone.annotations.CanIgnoreReturnValue; +import io.spine.annotation.Internal; import io.spine.annotation.SPI; import org.checkerframework.checker.nullness.qual.Nullable; import static com.google.common.base.Preconditions.checkNotNull; +import static io.spine.reflect.Invokables.callParameterlessCtor; import static io.spine.util.Exceptions.newIllegalStateException; /** @@ -34,8 +36,9 @@ * *

Environment Type Detection

* - *

Current implementation allows to {@linkplain #is(Class) check} the type of the current - * environment, or {@linkplain #type() get the instance of the current environment}. + *

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