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

Conversation

vil02
Copy link
Contributor

@vil02 vil02 commented Oct 9, 2023

Purpose

Closes ballerina-platform/ballerina-library#4894.

Examples

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests
  • Updated the spec
  • Checked native-image compatibility

vil02 added 2 commits October 9, 2023 08:52
Made the design cleaner by marking Java classes as `final`
and excitability declaring their default constructors as `private`.
This change also the code coverage more accurate.
Fixes #4894.
@vil02 vil02 marked this pull request as ready for review October 9, 2023 07:13
@vil02 vil02 requested a review from shafreenAnfar as a code owner October 9, 2023 07:13
@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (5ebaecd) 82.85% compared to head (4c4d695) 93.54%.

Additional details and impacted files
@@              Coverage Diff              @@
##             master     #484       +/-   ##
=============================================
+ Coverage     82.85%   93.54%   +10.69%     
  Complexity       10       10               
=============================================
  Files             7        6        -1     
  Lines            35       31        -4     
  Branches          9        9               
=============================================
  Hits             29       29               
+ Misses            4        0        -4     
  Partials          2        2               
Files Coverage Δ
...rc/main/java/io/ballerina/stdlib/url/UrlUtils.java 100.00% <ø> (+50.00%) ⬆️
...ava/io/ballerina/stdlib/url/nativeimpl/Decode.java 100.00% <ø> (+25.00%) ⬆️
...ava/io/ballerina/stdlib/url/nativeimpl/Encode.java 87.50% <ø> (+5.14%) ⬆️
...o/ballerina/stdlib/url/nativeimpl/ModuleUtils.java 100.00% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This makes it clearer that the class is a proper utility.
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@vil02 vil02 requested a review from ThisaruGuruge October 10, 2023 08:20
@ThisaruGuruge ThisaruGuruge merged commit fae4662 into ballerina-platform:master Oct 10, 2023
@vil02 vil02 deleted the 4894_make_java_classes_proper_utilities branch October 10, 2023 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make some of the Java classes proper utility classes
2 participants