Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Don't use reflection to get deferred() value #62

Merged
merged 1 commit into from
Nov 13, 2017
Merged

Don't use reflection to get deferred() value #62

merged 1 commit into from
Nov 13, 2017

Conversation

mkurz
Copy link
Owner

@mkurz mkurz commented Nov 6, 2017

I don't see the need for using reflection here. Plus I don't like reflection.
Also without reflection the code is typesafe. And faster. And we can remove the Deferrable marker annotation.

Replaces #57 as well.

This was referenced Nov 6, 2017
*/
@Override
protected boolean deferred() {
return false;
Copy link
Owner Author

Choose a reason for hiding this comment

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

Here we just return false because you can't defer @DeferredDeadbolt

@schaloner schaloner merged commit c39c0f1 into mkurz:master Nov 13, 2017
@mkurz mkurz deleted the removeReflection branch November 13, 2017 11:40
@mkurz mkurz added this to the 2.6.4 milestone Nov 13, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants