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

Inline functions for routing #1539

Merged
merged 15 commits into from
Oct 13, 2023
Merged

Inline functions for routing #1539

merged 15 commits into from
Oct 13, 2023

Conversation

alexander-yevsyukov
Copy link
Contributor

@alexander-yevsyukov alexander-yevsyukov commented Oct 12, 2023

This PR converts CommandRouting and EventRouting to Kotlin, extending these classes with inline functions for idiomatic routing configuration in Kotlin.

Other notable changes:

  • Updated internal dependencies, and Logging in particular.
  • Addressed console warnings for over exposed receptors.

@alexander-yevsyukov alexander-yevsyukov self-assigned this Oct 12, 2023
@alexander-yevsyukov alexander-yevsyukov changed the title Better routing Inline functions for routing Oct 12, 2023
@alexander-yevsyukov alexander-yevsyukov marked this pull request as ready for review October 12, 2023 23:54
@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

Merging #1539 (e52d4f3) into master (8006643) will increase coverage by 0.01%.
The diff coverage is 89.18%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1539      +/-   ##
============================================
+ Coverage     89.78%   89.79%   +0.01%     
+ Complexity     4998     4994       -4     
============================================
  Files           648      648              
  Lines         15692    15690       -2     
  Branches        906      906              
============================================
  Hits          14089    14089              
+ Misses         1286     1285       -1     
+ Partials        317      316       -1     

Copy link
Contributor

@armiol armiol left a comment

Choose a reason for hiding this comment

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

@alexander-yevsyukov Almost LGTM. Please see my comments.

Copy link
Contributor

@armiol armiol left a comment

Choose a reason for hiding this comment

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

@alexander-yevsyukov LGTM.

As discussed, Kotlin Set<I> means Set<? extends I> in Java, since it has a built-in covariance for the generic type. In routing, we expect exactly I-typed IDs. So the explicit cast is better in terms of semantics.

@alexander-yevsyukov alexander-yevsyukov merged commit ce13988 into master Oct 13, 2023
7 checks passed
@alexander-yevsyukov alexander-yevsyukov deleted the better-routing branch October 13, 2023 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants