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

Conversation

vil02
Copy link
Contributor

@vil02 vil02 commented Oct 11, 2023

Purpose

Fixes: ballerina-platform/ballerina-library#4911.

Examples

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests
  • Updated the spec
  • Checked native-image compatibility
  • No commons package changes (if there are any, please update the GraphQL version in GraphQL tools and Ballerina dev tools)
  • No compiler package changes (if there are any, please update the GraphQL version in Ballerina dev tools)

Remarks for reviewers

I am not sure what exactly should be done regarding:

if there are any, please update the GraphQL version in GraphQL tools and Ballerina dev tools

vil02 added 3 commits October 11, 2023 21:31
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 #4911.
@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

@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (1e90907) 85.32% compared to head (2d5526e) 86.57%.
Report is 8 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1615      +/-   ##
============================================
+ Coverage     85.32%   86.57%   +1.24%     
- Complexity        0      678     +678     
============================================
  Files            98      123      +25     
  Lines          6446     8810    +2364     
  Branches       3098     3515     +417     
============================================
+ Hits           5500     7627    +2127     
- Misses          872      903      +31     
- Partials         74      280     +206     
Files Coverage Δ
...lerina/stdlib/graphql/commons/utils/TypeUtils.java 43.47% <ø> (+10.14%) ⬆️
.../ballerina/stdlib/graphql/commons/utils/Utils.java 77.50% <ø> (+77.50%) ⬆️
...a/stdlib/graphql/runtime/client/QueryExecutor.java 86.36% <ø> (+3.75%) ⬆️

... and 38 files with indirect coverage changes

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

@ThisaruGuruge ThisaruGuruge merged commit e145930 into ballerina-platform:master Oct 13, 2023
7 checks passed
@vil02 vil02 deleted the 4911_make_some_java_classes_proper_utilities branch October 13, 2023 07:53
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-graphql proper utility classes
2 participants