Skip to content

Commit

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

Make some Java classes proper utilities
  • Loading branch information
TharmiganK committed Oct 23, 2023
2 parents 98c10c8 + 3439afd commit 4b09a00
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 11 deletions.
6 changes: 3 additions & 3 deletions ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
org = "ballerina"
name = "constraint"
version = "1.4.0"
version = "1.4.1"
authors = ["Ballerina"]
keywords = ["constraint", "validation"]
repository = "https://github.com/ballerina-platform/module-ballerina-constraint"
Expand All @@ -15,5 +15,5 @@ graalvmCompatible = true
[[platform.java17.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "constraint-native"
version = "1.4.0"
path = "../native/build/libs/constraint-native-1.4.0.jar"
version = "1.4.1"
path = "../native/build/libs/constraint-native-1.4.1-SNAPSHOT.jar"
2 changes: 1 addition & 1 deletion ballerina/CompilerPlugin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ id = "constraint-compiler-plugin"
class = "io.ballerina.stdlib.constraint.compiler.ConstraintCompilerPlugin"

[[dependency]]
path = "../compiler-plugin/build/libs/constraint-compiler-plugin-1.4.0.jar"
path = "../compiler-plugin/build/libs/constraint-compiler-plugin-1.4.1-SNAPSHOT.jar"
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 = "constraint"
version = "1.4.0"
version = "1.4.1"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "test"},
Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ This file contains all the notable changes done to the Ballerina Constraint pack

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

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

## [1.2.0] - 2023-06-01

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
/**
* The constants related to compiler plugin tests.
*/
public class CompilerPluginTestConstants {
public final class CompilerPluginTestConstants {

private CompilerPluginTestConstants() {}

static final String ANNOTATION_TAG_INT = "Int";
static final String ANNOTATION_TAG_FLOAT = "Float";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
/**
* Utility functions related to compiler plugins tests.
*/
public class CompilerPluginTestUtils {
public final class CompilerPluginTestUtils {

private CompilerPluginTestUtils() {}

private static final Path RESOURCE_DIRECTORY = Paths.get("src", "test", "resources", "ballerina_sources")
.toAbsolutePath();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
/**
* The constants related to compiler plugin.
*/
public class Constants {
public final class Constants {

private Constants() {}

public static final String PACKAGE_NAME = "ballerina";
public static final String MODULE_NAME = "constraint";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
/**
* The compiler plugin utility functions.
*/
public class ConstraintCompilerPluginUtils {
public final class ConstraintCompilerPluginUtils {

private ConstraintCompilerPluginUtils() {}

private static final ConstraintCompatibilityMatrix matrix = new ConstraintCompatibilityMatrix();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
/**
* Constants related to constraint module.
*/
public class Constants {
public final class Constants {

private Constants() {}

public static final String PREFIX_RECORD_FIELD = "$field$";
public static final String ANNOTATION_RECORD_REGEX = "^ballerina/constraint:[0-9]+:.+";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
/**
* Utility functions related to errors.
*/
public class ErrorUtils {
public final class ErrorUtils {

private ErrorUtils() {}

private static final String UNEXPECTED_ERROR_MESSAGE = "Unexpected error found due to typedesc and value mismatch.";
private static final String TYPE_CONVERSION_ERROR_MESSAGE = "Type conversion failed due to typedesc and value " +
Expand Down

0 comments on commit 4b09a00

Please sign in to comment.