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

Add an API to check if a custom shifter is set. #1062

Merged
merged 1 commit into from
Jul 2, 2019
Merged

Conversation

Chaoba
Copy link
Contributor

@Chaoba Chaoba commented Jul 2, 2019

Resolves #1057

@Chaoba Chaoba self-assigned this Jul 2, 2019
@Chaoba Chaoba merged commit a4dd4ed into master Jul 2, 2019
@Chaoba Chaoba deleted the kl-shifter-check branch July 2, 2019 08:40
* @return true if using default shifter.
*/
public static boolean isUsingDefaultShifter() {
return coordinateShifter == DEFAULT;
Copy link
Member

Choose a reason for hiding this comment

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

this should be equals instead of ==

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems use == doesn't have any issue here as coordinateShifter will be the same object of DEFAULT when using default shifter. Do you have any other reasons for using equals here?

@langsmith langsmith added this to the v4.9.0 milestone Sep 18, 2019
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.

Add an option to check if a custom shifter is set
4 participants