Skip to content

Commit

Permalink
Merge pull request #687 from vil02/4921_make_some_java_classes_proper…
Browse files Browse the repository at this point in the history
…_utilities

Make some of the Java classes proper utilities
  • Loading branch information
daneshk authored Feb 22, 2024
2 parents aea22ae + 763c92f commit 7da2c15
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 8 deletions.
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
4 changes: 3 additions & 1 deletion native/src/test/java/io/ballerina/stdlib/sql/TestUtils.java
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

0 comments on commit 7da2c15

Please sign in to comment.