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

Minor code cleanup #824

Closed
wants to merge 3 commits into from
Closed

Minor code cleanup #824

wants to merge 3 commits into from

Conversation

ajs6f
Copy link
Contributor

@ajs6f ajs6f commented Jun 26, 2015

}
};

private static final HttpHeaderReader.ListElementCreator<PreferTag> PREFER_CREATOR = r -> new PreferTag(r);
Copy link

Choose a reason for hiding this comment

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

This would also work, no?
PREFER_CREATOR = PreferTag::new;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice, yes. Maybe just in-line it?

Copy link

Choose a reason for hiding this comment

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

sure

* @param second
* @throws Exception
*/
void acceptThrows(final S first, final T second) throws Exception;
Copy link

Choose a reason for hiding this comment

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

This can safely be private, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is an interface. There are no private methods.

@awoods
Copy link

awoods commented Jun 30, 2015

Resolved with: e8b3f63

@awoods awoods closed this Jun 30, 2015
@awoods awoods deleted the HttpCommonsPreJava8Stuff branch June 30, 2015 15:32
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.

None yet

2 participants