-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ServerEvent: replace Guava predicate and function with STL (refs #2111) #2255
ServerEvent: replace Guava predicate and function with STL (refs #2111) #2255
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding is we want to make this breaking change before going out of beta so I'd guess it's oversight, but perhaps @tomakehurst can confirm as NOT_MATCHED
and TO_LOGGED_REQUEST
are public and fairly widely used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am in favor of doing this change for 3.0. If we want to reduce Guava footprint, removing it from APIs is definitely a right thing to do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The proposal from @tomasbjerre is to drop static fields entirely as a part of the change. I will document the new locations afterwards
public static final Function<ServeEvent, LoggedRequest> TO_LOGGED_REQUEST =
ServeEvent::getRequest;
public static final Predicate<ServeEvent> NOT_MATCHED = ServeEvent::isNoExactMatch;
@tomasbjerre WDYT? |
If you want me to just remove the fields I can do that. |
@tomasbjerre would be great, thanks! |
5785aaf
to
a045b09
Compare
Fixed |
a045b09
to
e73a46c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for the new version, will ship it.
Thanks a lot @tomasbjerre !
These are the last imports of
Predicate
andFunction
from Guava. Perhaps they are left for a reason?References
#2111
Submitter checklist