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

Conversation

vil02
Copy link
Contributor

@vil02 vil02 commented Oct 12, 2023

Purpose

Closes ballerina-platform/ballerina-library#4918.

Examples

Checklist

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

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.
Fixes #4918.
@sonarcloud
Copy link

sonarcloud bot commented Oct 12, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

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
21.3% 21.3% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (9222f70) 81.36% compared to head (cca10f1) 81.59%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #726      +/-   ##
============================================
+ Coverage     81.36%   81.59%   +0.23%     
  Complexity      161      161              
============================================
  Files            22       22              
  Lines          1057     1054       -3     
  Branches        206      206              
============================================
  Hits            860      860              
+ Misses          114      111       -3     
  Partials         83       83              
Files Coverage Δ
...o/ballerina/stdlib/email/util/EmailAccessUtil.java 78.18% <ø> (+0.28%) ⬆️
...ava/io/ballerina/stdlib/email/util/EmailUtils.java 100.00% <ø> (+50.00%) ⬆️
.../java/io/ballerina/stdlib/email/util/SmtpUtil.java 86.60% <ø> (+0.41%) ⬆️

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

@ThisaruGuruge ThisaruGuruge merged commit 8733e60 into ballerina-platform:master Oct 13, 2023
7 of 8 checks passed
@vil02 vil02 deleted the 4918_make_some_java_classes_proper_utilities branch October 13, 2023 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants