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

Added missing javadoc documentation for GlobalRequestAttributes class #91

Merged
merged 3 commits into from
Oct 30, 2017

Conversation

FrelliBB
Copy link
Member

Resolves #69

@FrelliBB FrelliBB self-assigned this Oct 25, 2017
@FrelliBB FrelliBB requested a review from KPull October 25, 2017 21:08
public GlobalRequestAttributes timeout(long timeout) {
requireNonNull(timeout, "timeout should not be null.");
Copy link
Member

Choose a reason for hiding this comment

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

Since timeout is a primitive type, it cannot be null so there's no need for this check.

Copy link
Member Author

Choose a reason for hiding this comment

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

replaced it with a more relevant check to ensure that value passed is >= 0

public GlobalRequestAttributes timeout(long timeout) {
if (globalRequestTimeout < 0) {
Copy link
Member

Choose a reason for hiding this comment

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

You're not checking the argument here. You need to use timeout instead of globalRequestTimeout.

Copy link
Member Author

@FrelliBB FrelliBB Oct 30, 2017

Choose a reason for hiding this comment

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

🤕 good catch

@KPull
Copy link
Member

KPull commented Oct 30, 2017

Thanks @FrelliBB for your contribution.

@KPull KPull merged commit 09ce647 into bastion-dev:develop Oct 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants