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 of the Java classes proper utilities #926

Conversation

vil02
Copy link
Contributor

@vil02 vil02 commented Oct 14, 2023

Purpose

Closes ballerina-platform/ballerina-library#4926.

Examples

Checklist

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

@codecov
Copy link

codecov bot commented Oct 16, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (fe816e0) 85.96% compared to head (441b8da) 87.13%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #926      +/-   ##
============================================
+ Coverage     85.96%   87.13%   +1.17%     
  Complexity      104      104              
============================================
  Files            20       20              
  Lines           520      513       -7     
  Branches         66       66              
============================================
  Hits            447      447              
+ Misses           50       43       -7     
  Partials         23       23              
Files Coverage Δ
...c/main/java/io/ballerina/stdlib/udp/Constants.java 100.00% <ø> (+14.28%) ⬆️
.../main/java/io/ballerina/stdlib/udp/Dispatcher.java 74.66% <ø> (+0.98%) ⬆️
...e/src/main/java/io/ballerina/stdlib/udp/Utils.java 100.00% <ø> (+2.56%) ⬆️
...a/io/ballerina/stdlib/udp/nativeclient/Client.java 100.00% <ø> (+3.44%) ⬆️
...llerina/stdlib/udp/nativeclient/ConnectClient.java 100.00% <ø> (+3.44%) ⬆️
...io/ballerina/stdlib/udp/nativelistener/Caller.java 100.00% <ø> (+5.00%) ⬆️
.../ballerina/stdlib/udp/nativelistener/Listener.java 73.33% <ø> (+1.59%) ⬆️

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

MohamedSabthar
MohamedSabthar previously approved these changes Oct 16, 2023
@vil02 vil02 force-pushed the 4926_make_some_java_classes_proper_utilities branch from 916e45e to 7c7b80b Compare October 16, 2023 21:08
@vil02 vil02 requested a review from MohamedSabthar October 17, 2023 06:23
@vil02 vil02 force-pushed the 4926_make_some_java_classes_proper_utilities branch from 6e421b1 to 6b36db8 Compare October 18, 2023 05:32
@vil02
Copy link
Contributor Author

vil02 commented Oct 18, 2023

@MohamedSabthar I rebased this branch - could you please approve the workflows again?

@vil02 vil02 force-pushed the 4926_make_some_java_classes_proper_utilities branch from 6b36db8 to b6cb3e3 Compare October 19, 2023 09:18
@vil02
Copy link
Contributor Author

vil02 commented Oct 19, 2023

@MohamedSabthar I made another rebase. Please approve the workflows again.

vil02 and others added 3 commits October 23, 2023 07:51
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 #4926.
Co-authored-by: MohamedSabthar <[email protected]>
@vil02 vil02 force-pushed the 4926_make_some_java_classes_proper_utilities branch from b6cb3e3 to 441b8da Compare October 23, 2023 05:51
@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

@MohamedSabthar MohamedSabthar merged commit e765ed3 into ballerina-platform:main Oct 23, 2023
7 checks passed
@vil02 vil02 deleted the 4926_make_some_java_classes_proper_utilities branch October 23, 2023 08:11
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-udp proper utility classes
2 participants