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

Improve callMethod logic #855

Merged
merged 4 commits into from
Nov 27, 2024

Conversation

ravinperera00
Copy link
Contributor

Purpose

Examples

Checklist

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

if (runtime != null) {
Set<Map.Entry<String, BObject>> services = registeredServices.entrySet();
for (Map.Entry<String, BObject> service : services) {
runtime.callMethod(service.getValue(), ON_MESSAGE, new StrandMetadata(true, null), email);
Copy link
Contributor

Choose a reason for hiding this comment

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

We should check isolated logic here instead of passing true

Copy link
Contributor Author

@ravinperera00 ravinperera00 Nov 25, 2024

Choose a reason for hiding this comment

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

Fixed in 251aac9

@ravinperera00 ravinperera00 force-pushed the java21_sync branch 2 times, most recently from 4fc4e26 to 66edec9 Compare November 25, 2024 06:33
Copy link

codecov bot commented Nov 25, 2024

Codecov Report

Attention: Patch coverage is 74.28571% with 9 lines in your changes missing coverage. Please review.

Project coverage is 80.79%. Comparing base (229ff6e) to head (1dce1db).

Files with missing lines Patch % Lines
...o/ballerina/stdlib/email/server/EmailListener.java 74.28% 4 Missing and 5 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #855      +/-   ##
============================================
- Coverage     80.90%   80.79%   -0.11%     
- Complexity      161      164       +3     
============================================
  Files            21       21              
  Lines          1021     1031      +10     
  Branches        166      167       +1     
============================================
+ Hits            826      833       +7     
- Misses          114      115       +1     
- Partials         81       83       +2     

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


🚨 Try these New Features:

@warunalakshitha warunalakshitha merged commit 26160ec into ballerina-platform:master Nov 27, 2024
6 checks passed
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.

2 participants