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 Java classes proper utilities #1434

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ scope = "testOnly"
groupId = "io.ballerina.stdlib"
artifactId = "http-native"
version = "2.10.3"
path = "./lib/http-native-2.10.3-20231011-163800-7c8069a.jar"
path = "./lib/http-native-2.10.3.jar"

[[platform.java17.dependency]]
groupId = "io.netty"
Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- [Fixed error response from backend not getting properly propegated to the client](https://github.com/ballerina-platform/ballerina-standard-library/issues/4833)

### Changed
- [Make some of the Java classes proper utility classes](https://github.com/ballerina-platform/ballerina-standard-library/issues/4930)

## [1.9.1] - 2023-09-11
### Fixed
- [Address CVE-2023-33201 bouncy castle vulnerability](https://github.com/ballerina-platform/ballerina-standard-library/issues/4776)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
/**
* gRPC compiler plugin constants.
*/
public class GrpcCompilerPluginConstants {
public final class GrpcCompilerPluginConstants {

private GrpcCompilerPluginConstants() {}

// Compiler plugin constants
public static final String GRPC_SERVICE_DESCRIPTOR_ANNOTATION_NAME = "ServiceDescriptor";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
/**
* Provides protobuf descriptor for well known dependency.
*/
public class StandardDescriptorBuilder {
public final class StandardDescriptorBuilder {

private StandardDescriptorBuilder() {}

private static final Map<String, Descriptors.FileDescriptor> standardLibDescriptorMapForPackageKey;
private static final Map<String, Descriptors.FileDescriptor> standardLibDescriptorMapForMessageName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
/**
* A util class to be used for native tests.
*/
public class TestUtils {
public final class TestUtils {

private TestUtils() {}

public static BObject getBObject(Map<String, Field> fieldMap) {
BObject bObject = Mockito.mock(BObject.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
* This class holds test utility APIs related to check the running OS.
*
*/
public class EnvironmentTestUtils {
public final class EnvironmentTestUtils {

private EnvironmentTestUtils() {}

public static boolean isWindowsEnvironment() {
return System.getProperty("os.name").toLowerCase(Locale.ENGLISH).contains("win");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
* Utility methods to test the native functions of client endpoint.
*
*/
public class NativeTestUtils {
public final class NativeTestUtils {

private NativeTestUtils() {}

public static Object externInvokeInitStubNullRootDescriptor(BObject clientEndpoint) {
return FunctionUtils.externInitStub(clientEndpoint, null, null, null);
Expand Down
Loading