Skip to content

Commit

Permalink
Merge pull request #1096 from vil02/4901_make_java_classes_proper_uti…
Browse files Browse the repository at this point in the history
…lities

Make some Java classes proper utilities
  • Loading branch information
sahanHe authored Oct 23, 2023
2 parents a1915c5 + 0081b53 commit 88fb66b
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 11 deletions.
10 changes: 5 additions & 5 deletions ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
org = "ballerina"
name = "io"
version = "1.6.0"
version = "1.6.1"
authors = ["Ballerina"]
keywords = ["io", "json", "xml", "csv", "file"]
repository = "https://github.com/ballerina-platform/module-ballerina-io"
Expand All @@ -15,11 +15,11 @@ graalvmCompatible = true
[[platform.java17.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "io-native"
path = "../native/build/libs/io-native-1.6.0.jar"
version = "1.6.0"
path = "../native/build/libs/io-native-1.6.1-SNAPSHOT.jar"
version = "1.6.1"


[[platform.java17.dependency]]
path = "../test-utils/build/libs/io-test-utils-1.6.0.jar"
path = "../test-utils/build/libs/io-test-utils-1.6.1-SNAPSHOT.jar"
scope = "testOnly"
version = "1.6.0"
version = "1.6.1-SNAPSHOT"
2 changes: 1 addition & 1 deletion ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ distribution-version = "2201.8.0"
[[package]]
org = "ballerina"
name = "io"
version = "1.6.0"
version = "1.6.1"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.float"},
Expand Down
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [Fixed the issue related to maintaining order in writing CSV records](https://github.com/ballerina-platform/ballerina-standard-library/issues/3399)
- [Fixed the fileReadCsv and fileReadCsvAsStream APIs to maintain the order while reading CSV records](https://github.com/ballerina-platform/ballerina-standard-library/issues/3780)
- [Fixed the issue related to expected type in CSV data mapping](https://github.com/ballerina-platform/ballerina-standard-library/issues/3669)
- [Make some of the Java classes proper utility classes](https://github.com/ballerina-platform/ballerina-standard-library/issues/4901)

## [1.3.1] - 2022-11-29
### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@
*
* * @since 1.3.0
*/
public class CsvChannelUtils {
public final class CsvChannelUtils {

private CsvChannelUtils() {}

private static final BString FIELD_SEPERATOR = StringUtils.fromString(",");
private static final BString ROW_SEPERATOR = StringUtils.fromString("");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
*
* @since ballerina-0.970.0-alpha3
*/
public class WriteXml {
public final class WriteXml {

private WriteXml() {}

public static Object writeXml(BObject characterChannelObj, BXml content) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
/**
* I/O related constants.
*/
public class IOConstants {
public final class IOConstants {

private IOConstants() {}

/**
* Name of the ByteChannel which will be represented through the native struct.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@
/**
* The utility class used to execute read/write operations to a property file.
*/
public class PropertyUtils {
public final class PropertyUtils {

private PropertyUtils() {}

private static final Logger log = LoggerFactory.getLogger(PropertyUtils.class);
private static final MapType mapType = TypeCreator.createMapType(PredefinedTypes.TYPE_STRING);
private static Map<String, Properties> propertiesMap = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
/**
* Contains the util functions related to I/O test cases.
*/
public class TestUtil {
public final class TestUtil {

private TestUtil() {}

/**
* Opens a channel from a specified file.
Expand Down

0 comments on commit 88fb66b

Please sign in to comment.