org.jetbrains.kotlin
kotlin-reflect
diff --git a/jvm-tools/src/test/kotlin/io/spine/tools/jvm/jar/KManifestSpec.kt b/jvm-tools/src/test/kotlin/io/spine/tools/jvm/jar/KManifestSpec.kt
index f5bf93168..9ae306220 100644
--- a/jvm-tools/src/test/kotlin/io/spine/tools/jvm/jar/KManifestSpec.kt
+++ b/jvm-tools/src/test/kotlin/io/spine/tools/jvm/jar/KManifestSpec.kt
@@ -27,6 +27,7 @@
package io.spine.tools.jvm.jar
import com.google.common.truth.Truth.assertWithMessage
+import io.kotest.matchers.Matcher
import io.kotest.matchers.shouldBe
import io.kotest.matchers.shouldNot
import io.kotest.matchers.string.beEmpty
@@ -61,9 +62,9 @@ class KManifestSpec {
@Test
fun `load from a JAR for a class packaged in it`() {
- // Guava is a binary dependency on the test classpath, so its classes
+ // Kotest is a binary dependency on the test classpath, so its classes
// are loaded via a `JarURLConnection`.
- val cls = com.google.common.base.Preconditions::class.java
+ val cls = Matcher::class.java
val manifest = KManifest.load(cls)
diff --git a/tool-base/src/main/java/io/spine/tools/code/Indent.java b/tool-base/src/main/java/io/spine/tools/code/Indent.java
index 9d7dc57fd..e4fb28dd1 100644
--- a/tool-base/src/main/java/io/spine/tools/code/Indent.java
+++ b/tool-base/src/main/java/io/spine/tools/code/Indent.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2025, TeamDev. All rights reserved.
+ * Copyright 2026, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -130,7 +130,6 @@ public int level() {
/**
* Obtains an instance shifted to the right by one level.
*/
- @SuppressWarnings("unused") /* Part of the public API. */
public Indent shiftedRight() {
return new Indent(size, level + 1);
}
@@ -141,7 +140,6 @@ public Indent shiftedRight() {
* @throws IllegalStateException
* if this indentation is already at the zero column
*/
- @SuppressWarnings("unused") /* Part of the public API. */
public Indent shiftedLeft() {
checkState(level > 0, "Already at zero. Cannot shift to the left more.");
return new Indent(size, level - 1);
diff --git a/tool-base/src/main/java/io/spine/tools/dart/fs/DartFile.java b/tool-base/src/main/java/io/spine/tools/dart/fs/DartFile.java
index 189fa1e22..586a042d3 100644
--- a/tool-base/src/main/java/io/spine/tools/dart/fs/DartFile.java
+++ b/tool-base/src/main/java/io/spine/tools/dart/fs/DartFile.java
@@ -1,11 +1,11 @@
/*
- * Copyright 2022, TeamDev. All rights reserved.
+ * Copyright 2026, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
@@ -45,7 +45,6 @@ private DartFile(Path path) {
/**
* Reads the file from the local file system.
*/
- @SuppressWarnings("unused") /* Part of the public API. */
public static DartFile read(Path path) {
checkNotNull(path);
var file = new DartFile(path);
diff --git a/tool-base/src/main/java/io/spine/tools/dart/fs/ProtocPluginPath.java b/tool-base/src/main/java/io/spine/tools/dart/fs/ProtocPluginPath.java
index 0b2bd6697..df85da848 100644
--- a/tool-base/src/main/java/io/spine/tools/dart/fs/ProtocPluginPath.java
+++ b/tool-base/src/main/java/io/spine/tools/dart/fs/ProtocPluginPath.java
@@ -1,11 +1,11 @@
/*
- * Copyright 2022, TeamDev. All rights reserved.
+ * Copyright 2026, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
@@ -27,6 +27,7 @@
package io.spine.tools.dart.fs;
import io.spine.tools.OsFamily;
+import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
import java.nio.file.Path;
@@ -39,7 +40,6 @@
* See
* Pub documentation.
*/
-@SuppressWarnings("unused") /* Part of the public API. */
public final class ProtocPluginPath {
private static final boolean WINDOWS = OsFamily.Windows.isCurrent();
@@ -49,7 +49,7 @@ public final class ProtocPluginPath {
private static final String DOC_LINK =
"https://github.com/dart-lang/protobuf/tree/master/protoc_plugin";
- private static Path resolved = null;
+ private static @MonotonicNonNull Path resolved = null;
/** Prevents the utility class instantiation. */
private ProtocPluginPath() {
diff --git a/tool-base/src/main/java/io/spine/tools/fs/ExternalModule.java b/tool-base/src/main/java/io/spine/tools/fs/ExternalModule.java
index 92ce3237b..90109c178 100644
--- a/tool-base/src/main/java/io/spine/tools/fs/ExternalModule.java
+++ b/tool-base/src/main/java/io/spine/tools/fs/ExternalModule.java
@@ -1,11 +1,11 @@
/*
- * Copyright 2022, TeamDev. All rights reserved.
+ * Copyright 2026, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
@@ -145,7 +145,6 @@ public static ExternalModule spineUsers() {
/**
* All the modules in {@link #spineWeb()} and {@link #spineUsers()}.
*/
- @SuppressWarnings("unused") /* Part of the public API. */
public static ImmutableList predefinedModules() {
return ImmutableList.of(spineWeb(), spineUsers());
}
diff --git a/tool-base/src/main/java/io/spine/tools/fs/ExternalModules.java b/tool-base/src/main/java/io/spine/tools/fs/ExternalModules.java
index c348f8276..e083dde38 100644
--- a/tool-base/src/main/java/io/spine/tools/fs/ExternalModules.java
+++ b/tool-base/src/main/java/io/spine/tools/fs/ExternalModules.java
@@ -1,11 +1,11 @@
/*
- * Copyright 2022, TeamDev. All rights reserved.
+ * Copyright 2026, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
@@ -55,7 +55,6 @@ public ExternalModules(Iterable modules) {
/**
* Creates a new instance with the passed modules.
*/
- @SuppressWarnings("unused") /* Part of the public API. */
public ExternalModules(ExternalModule... modules) {
this(ImmutableList.copyOf(modules));
}
@@ -63,7 +62,6 @@ public ExternalModules(ExternalModule... modules) {
/**
* Creates an instance from a raw representation from a Gradle extension.
*/
- @SuppressWarnings("unused") /* Part of the public API. */
public ExternalModules(Map> modules) {
this(convert(checkNotNull(modules)));
}
diff --git a/tool-base/src/main/java/io/spine/tools/fs/FileWithImports.java b/tool-base/src/main/java/io/spine/tools/fs/FileWithImports.java
index 3636bea57..337ab9e6c 100644
--- a/tool-base/src/main/java/io/spine/tools/fs/FileWithImports.java
+++ b/tool-base/src/main/java/io/spine/tools/fs/FileWithImports.java
@@ -1,11 +1,11 @@
/*
- * Copyright 2022, TeamDev. All rights reserved.
+ * Copyright 2026, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
@@ -44,7 +44,6 @@ protected FileWithImports(Path path) {
/**
* Resolves the relative imports in the file into absolute ones with the given modules.
*/
- @SuppressWarnings("unused") /* Part of the public API. */
public void resolveImports(Path generatedRoot, ExternalModules modules) {
load();
ImmutableList.Builder newLines = ImmutableList.builder();
diff --git a/tool-base/src/main/java/io/spine/tools/java/fs/DefaultJavaPaths.java b/tool-base/src/main/java/io/spine/tools/java/fs/DefaultJavaPaths.java
index 2abaef9f1..c30b0dea8 100644
--- a/tool-base/src/main/java/io/spine/tools/java/fs/DefaultJavaPaths.java
+++ b/tool-base/src/main/java/io/spine/tools/java/fs/DefaultJavaPaths.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2025, TeamDev. All rights reserved.
+ * Copyright 2026, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -78,7 +78,6 @@ public static DefaultJavaPaths at(File projectDir) {
return at(projectDir.toPath());
}
- @SuppressWarnings("unused") /* Part of the public API. */
public Src src() {
return new Src(projectDir());
}
diff --git a/tool-base/src/main/java/io/spine/tools/java/fs/FileName.java b/tool-base/src/main/java/io/spine/tools/java/fs/FileName.java
index ade005277..5f1bf6cc9 100644
--- a/tool-base/src/main/java/io/spine/tools/java/fs/FileName.java
+++ b/tool-base/src/main/java/io/spine/tools/java/fs/FileName.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2025, TeamDev. All rights reserved.
+ * Copyright 2026, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -116,7 +116,6 @@ public static FileName forService(ServiceDescriptorProto service) {
* @param path the target file path
* @return {@code true} in case if the file has the .java extension.
*/
- @SuppressWarnings("unused") /* Part of the public API. */
public static boolean isJava(Path path) {
checkNotNull(path);
return path.toString()
diff --git a/tool-base/src/main/java/io/spine/tools/java/javadoc/JavadocText.java b/tool-base/src/main/java/io/spine/tools/java/javadoc/JavadocText.java
index c512f2e3e..a9d965463 100644
--- a/tool-base/src/main/java/io/spine/tools/java/javadoc/JavadocText.java
+++ b/tool-base/src/main/java/io/spine/tools/java/javadoc/JavadocText.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2025, TeamDev. All rights reserved.
+ * Copyright 2026, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -54,7 +54,6 @@ public static JavadocText fromEscaped(String escapedText) {
return new JavadocText(escapedText);
}
- @SuppressWarnings("unused") /* Part of the public API. */
public static JavadocText fromUnescaped(String unescapedText) {
return new JavadocText(JavadocEscaper.escape(unescapedText));
}
@@ -64,7 +63,6 @@ public static JavadocText fromUnescaped(String unescapedText) {
*
* @return the text wrapped in the tags
*/
- @SuppressWarnings("unused") /* Part of the public API. */
public JavadocText inPreTags() {
var inTags = OPENING_PRE +
LINE_SEPARATOR +
diff --git a/tool-base/src/main/java/io/spine/tools/js/fs/DefaultJsPaths.java b/tool-base/src/main/java/io/spine/tools/js/fs/DefaultJsPaths.java
index dd5d11c6a..1a8700fe1 100644
--- a/tool-base/src/main/java/io/spine/tools/js/fs/DefaultJsPaths.java
+++ b/tool-base/src/main/java/io/spine/tools/js/fs/DefaultJsPaths.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2025, TeamDev. All rights reserved.
+ * Copyright 2026, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -80,7 +80,6 @@
*/
@Internal
@Immutable
-@SuppressWarnings("unused") /* Part of the public API. */
public final class DefaultJsPaths extends DefaultPaths {
private static final String ROOT_NAME = "js";
diff --git a/version.gradle.kts b/version.gradle.kts
index 99365b155..140877382 100644
--- a/version.gradle.kts
+++ b/version.gradle.kts
@@ -24,4 +24,4 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-val versionToPublish: String by extra("2.0.0-SNAPSHOT.395")
+val versionToPublish: String by extra("2.0.0-SNAPSHOT.396")