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

Conversation

vil02
Copy link
Contributor

@vil02 vil02 commented Oct 17, 2023

Purpose

Closes ballerina-platform/ballerina-library#5051.

Examples

Checklist

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

vil02 added 2 commits October 17, 2023 20:01
Made the design cleaner by marking Java classes as `final`
and explicitly declaring their default constructors as `private`.
This change makes the code coverage reports more accurate.
Closes #5051.
@vil02 vil02 requested a review from daneshk as a code owner October 17, 2023 18:05
@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

Copy link

github-actions bot commented Nov 1, 2023

This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the stale label is removed or commented.

@github-actions github-actions bot added the Stale label Nov 1, 2023
@vil02
Copy link
Contributor Author

vil02 commented Nov 1, 2023

@daneshk please approve the workflows

@daneshk
Copy link
Member

daneshk commented Nov 2, 2023

Thanks @vil02 for the contribution. Sorry for the delay in responding. PR LGTM

Copy link

codecov bot commented Nov 2, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (50fc30f) 91.33% compared to head (86ac1d6) 92.06%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #514      +/-   ##
============================================
+ Coverage     91.33%   92.06%   +0.72%     
  Complexity       25       25              
============================================
  Files            16       16              
  Lines           127      126       -1     
  Branches         32       32              
============================================
  Hits            116      116              
+ Misses           10        9       -1     
  Partials          1        1              
Files Coverage Δ
...ain/java/io/ballerina/stdlib/os/utils/OSUtils.java 100.00% <ø> (+4.76%) ⬆️

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

@daneshk daneshk merged commit 1fc6188 into ballerina-platform:master Nov 2, 2023
7 checks passed
@daneshk daneshk removed the Stale label Nov 14, 2023
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 in module-os proper utility classes
2 participants