Skip to content

Conversation

@Ruhshan
Copy link
Contributor

@Ruhshan Ruhshan commented Aug 1, 2023

Fixes #4093.

Motivation

There were some duplicated logic within different methods in MessageUtils.

Modifications

Move reusable logics to separate method and make use of those methods where applicable

Documentation

  • Does this pull request introduce a new feature? (yes / no) no

@mxsm mxsm changed the title Eventmesh enhancement 4093 [ISSUE #4093]Repeat code extraction as method.[MessageUtils] Aug 2, 2023
@codecov
Copy link

codecov bot commented Aug 2, 2023

Codecov Report

Merging #4315 (5bf43d9) into master (dd40227) will increase coverage by 0.00%.
The diff coverage is 45.71%.

❗ Current head 5bf43d9 differs from pull request most recent head eb9b76c. Consider uploading reports for the commit eb9b76c to get more accurate results

@@            Coverage Diff            @@
##             master    #4315   +/-   ##
=========================================
  Coverage     16.35%   16.35%           
- Complexity     1359     1363    +4     
=========================================
  Files           594      594           
  Lines         25419    25392   -27     
  Branches       2394     2394           
=========================================
- Hits           4158     4154    -4     
+ Misses        20838    20816   -22     
+ Partials        423      422    -1     
Files Changed Coverage Δ
...ache/eventmesh/client/tcp/common/MessageUtils.java 49.25% <45.71%> (+7.76%) ⬆️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@mxsm mxsm left a comment

Choose a reason for hiding this comment

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

LGTM

@mxsm mxsm merged commit 99bcf67 into apache:master Aug 2, 2023
xuhongjia pushed a commit to Deckers-Ohana/eventmesh that referenced this pull request Mar 13, 2025
…pache#4315)

* [ISSUE apache#4093]: Refactor package building chunks to reusable method

* [ISSUE apache#4093]: Refactor user agent building chunks to reusable method
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.

[Enhancement] Repeat code extraction as method.[MessageUtils]

3 participants