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

Conversation

vil02
Copy link
Contributor

@vil02 vil02 commented Oct 10, 2023

Purpose

Fixes ballerina-platform/ballerina-library#4902.

Examples

Checklist

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

vil02 added 2 commits October 10, 2023 20:50
Made the design cleaner by marking Java classes as `final`
and excitability declaring their default constructors as `private`.
This change makes the code coverage reports more accurate.
Fixes #4902.
@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
Contributor

@niveathika niveathika left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@codecov
Copy link

codecov bot commented Oct 11, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (2c7a10d) 90.03% compared to head (1fef543) 90.34%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #534      +/-   ##
============================================
+ Coverage     90.03%   90.34%   +0.30%     
  Complexity      248      248              
============================================
  Files             9        9              
  Lines           883      880       -3     
  Branches        290      290              
============================================
  Hits            795      795              
+ Misses           51       48       -3     
  Partials         37       37              
Files Coverage Δ
...n/java/io/ballerina/stdlib/xmldata/MapFromXml.java 94.02% <ø> (+1.38%) ⬆️
.../java/io/ballerina/stdlib/xmldata/XmlToRecord.java 71.42% <ø> (+2.46%) ⬆️
...o/ballerina/stdlib/xmldata/utils/XmlDataUtils.java 96.21% <ø> (+0.51%) ⬆️

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

@niveathika niveathika merged commit b29eb99 into ballerina-platform:master Oct 11, 2023
7 checks passed
@vil02 vil02 deleted the 4902_make_java_classes_proper_utilities branch October 11, 2023 06:58
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-ballerina-xmldata proper utility classes
2 participants