Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make some of the Java classes proper utilities #687

2 changes: 1 addition & 1 deletion ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ modules = [
[[package]]
org = "ballerina"
name = "http"
version = "2.10.5"
version = "2.10.6"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "auth"},
Expand Down
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added
- [Support retrieval of enum types](https://github.com/ballerina-platform/ballerina-standard-library/issues/4588)
- [Make some of the Java classes proper utility classes](https://github.com/ballerina-platform/ballerina-standard-library/issues/4921)

### Changed
- [Fix failure for unsupported time type](https://github.com/ballerina-platform/ballerina-standard-library/issues/4531)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
* This class provides functionality for the `ProcedureCallResult` to iterate through the sql result sets.
*/
public class ProcedureCallResultUtils {
public ProcedureCallResultUtils() {
private ProcedureCallResultUtils() {
}

public static Object getNextQueryResult(BObject procedureCallResult) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* @since 1.2.0
*/
public class RecordIteratorUtils {
public RecordIteratorUtils() {
private RecordIteratorUtils() {
}

public static Object nextResult(BObject recordIterator) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@
/**
* TestUtils class for testing ballerina native classes/methods.
*/
public class TestUtils {
public final class TestUtils {

private TestUtils() {}

/**
* ExtendedColumnDefinition Class for test utils.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
*
* @since 0.6.0
*/
public class Exec {
public final class Exec {

private Exec() {}

public static Object exec(BString command, BMap<BString, BString> env, Object dir, BString[] args) {
List<String> commandList = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
*
* @since 0.6.0
*/
public class ExitCode {
public final class ExitCode {

private ExitCode() {}

public static Object exitCode(BObject objVal) {
Process process = OSUtils.processFromObject(objVal);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
*
* @since 0.6.0
*/
public class WaitForExit {
public final class WaitForExit {

private WaitForExit() {}

public static Object waitForExit(BObject objVal) {
Process process = OSUtils.processFromObject(objVal);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
/**
* @since 0.6.0
*/
public class OSUtils {
public final class OSUtils {

private OSUtils() {}

private static final BString UNKNOWN_MESSAGE = StringUtils.fromString("Unknown Error");

Expand Down
Loading