Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

fix some code smell #219

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RobertLara
Copy link

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-4.6%) to 62.097% when pulling c833681 on RobertLara:master into 7e88b26 on sachin-handiekar:master.

@@ -54,7 +54,7 @@ private String parseBodyContents() {
for (java.util.Map.Entry<String,List<String>> entry : conn.getHeaderFields().entrySet()) {
String key= entry.getKey();
List<String> valueList= entry.getValue();
if (key!=null && valueList!=null && valueList.size()>0) {
if (key!=null && valueList!=null && valueList.isEmpty()) {
Copy link

Choose a reason for hiding this comment

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

@RobertLara "valueList.size()>0" seems to be the opposite of "valueList.isEmpty()".

Suggested change
if (key!=null && valueList!=null && valueList.isEmpty()) {
if (key!=null && valueList!=null && !valueList.isEmpty()) {

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants