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 #522

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
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## Changed

- [Change `com.sun.activation:jakarta.activation` to `jakarta.activation:jakarta.activation-api`](https://github.com/ballerina-platform/ballerina-standard-library/issues/4789)
- [Make some of the Java classes proper utility classes](https://github.com/ballerina-platform/ballerina-standard-library/issues/4940)

## [2.6.0] - 2022-02-20

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

private MimeConstants() {}

public static final String ENTITY = "Entity";
public static final String MEDIA_TYPE = "MediaType";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
/**
* Contains assert functions used by mime test cases.
*/
public class Assert {
public final class Assert {

private Assert() {}

public static void assertEquals(Object actual, Object expected) {
if (!areEqual(actual, expected)) {
Expand Down