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

@External annotation #1269

Merged
merged 12 commits into from
Apr 29, 2020
Merged

@External annotation #1269

merged 12 commits into from
Apr 29, 2020

Conversation

dmdashenkov
Copy link
Contributor

@dmdashenkov dmdashenkov commented Apr 28, 2020

This PR introduces the @External annotation to replace the (external = true) attribute in @Subscribe, @React, and @Command annotations.

@dmdashenkov dmdashenkov self-assigned this Apr 28, 2020
@codecov
Copy link

codecov bot commented Apr 28, 2020

Codecov Report

Merging #1269 into master will increase coverage by 0.03%.
The diff coverage is 70.00%.

@@             Coverage Diff              @@
##             master    #1269      +/-   ##
============================================
+ Coverage     91.04%   91.08%   +0.03%     
- Complexity     4667     4672       +5     
============================================
  Files           597      597              
  Lines         14801    14810       +9     
  Branches        842      845       +3     
============================================
+ Hits          13476    13490      +14     
+ Misses         1063     1061       -2     
+ Partials        262      259       -3     

@dmdashenkov dmdashenkov linked an issue Apr 28, 2020 that may be closed by this pull request
@dmdashenkov dmdashenkov marked this pull request as ready for review April 28, 2020 14:00
@dmdashenkov dmdashenkov requested a review from armiol April 28, 2020 14:00
@dmdashenkov
Copy link
Contributor Author

@armiol, PTAL.

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.

@dmdashenkov LGTM. Please see my comment though.

import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.truth.Truth.assertThat;

@DisplayName("`External` attribute can be declared")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this about the attribute or the annotation? Please make it more clear.

@dmdashenkov dmdashenkov merged commit 0c6435e into master Apr 29, 2020
@dmdashenkov dmdashenkov deleted the external-as-annotation branch April 29, 2020 08:47
@dmitrykuzmin dmitrykuzmin mentioned this pull request Sep 8, 2020
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.

Use parameter annotation for designating external events
2 participants