diff --git a/ballerina/Ballerina.toml b/ballerina/Ballerina.toml index 81b8383b..6d70d8f4 100644 --- a/ballerina/Ballerina.toml +++ b/ballerina/Ballerina.toml @@ -1,7 +1,7 @@ [package] org = "ballerina" name = "task" -version = "2.5.0" +version = "2.5.1" authors = ["Ballerina"] keywords = ["task", "job", "schedule"] repository = "https://github.com/ballerina-platform/module-ballerina-task" @@ -15,8 +15,8 @@ graalvmCompatible = true [[platform.java17.dependency]] groupId = "io.ballerina.stdlib" artifactId = "task-native" -version = "2.5.0" -path = "../native/build/libs/task-native-2.5.0.jar" +version = "2.5.1" +path = "../native/build/libs/task-native-2.5.1-SNAPSHOT.jar" [[platform.java17.dependency]] path = "./lib/quartz-2.3.2.jar" diff --git a/ballerina/Dependencies.toml b/ballerina/Dependencies.toml index 8d04cf7a..0a9ee2c7 100644 --- a/ballerina/Dependencies.toml +++ b/ballerina/Dependencies.toml @@ -39,7 +39,7 @@ modules = [ [[package]] org = "ballerina" name = "task" -version = "2.5.0" +version = "2.5.1" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "lang.runtime"}, diff --git a/changelog.md b/changelog.md index f30225af..bfe5066e 100644 --- a/changelog.md +++ b/changelog.md @@ -7,7 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Changed -[Enable non-quartz logs](https://github.com/ballerina-platform/ballerina-standard-library/issues/4282) +- [Enable non-quartz logs](https://github.com/ballerina-platform/ballerina-standard-library/issues/4282) +- [Make some of the Java classes proper utility classes](https://github.com/ballerina-platform/ballerina-standard-library/issues/5052) ## [2.3.0] - 2022-09-29 diff --git a/native/src/main/java/io/ballerina/stdlib/task/actions/TaskActions.java b/native/src/main/java/io/ballerina/stdlib/task/actions/TaskActions.java index 12a80605..1914f56c 100644 --- a/native/src/main/java/io/ballerina/stdlib/task/actions/TaskActions.java +++ b/native/src/main/java/io/ballerina/stdlib/task/actions/TaskActions.java @@ -44,7 +44,9 @@ * * @since 0.1.4 */ -public class TaskActions { +public final class TaskActions { + + private TaskActions() {} private static final int bound = 1000000; private static final String value = "1000"; diff --git a/native/src/main/java/io/ballerina/stdlib/task/utils/Utils.java b/native/src/main/java/io/ballerina/stdlib/task/utils/Utils.java index cde732b8..75559961 100644 --- a/native/src/main/java/io/ballerina/stdlib/task/utils/Utils.java +++ b/native/src/main/java/io/ballerina/stdlib/task/utils/Utils.java @@ -52,7 +52,9 @@ * * @since 0.995.0 */ -public class Utils { +public final class Utils { + + private Utils() {} private static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS");