Skip to content

Conversation

@Kui-Liu
Copy link
Contributor

@Kui-Liu Kui-Liu commented Apr 19, 2018

The method is checking whether the "name" exists in the "headers" or not, thus the method should be named "exists" but not "headExits".

public boolean headerExits(String name) {
return this.headers.containsKey(name);]
}

The method is checking whether the "name" exists in the "headers" or not, thus the method should be named "exists" but not "headExits".
@ShangwenWang
Copy link

Hello everyone,
In this case, I think "exists" is euqal to "contains". Maybe both of them can be considered as suitable?

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.

3 participants