summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
77a6c5f)
Fixed sonar issues/code-smells across this file.
Issue-ID: CCSDK-820
Change-Id: I495f35866607a1403536dfcebc366afd6d7c0ff7
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights
* reserved.
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights
* reserved.
+ * Modifications Copyright © 2018 IBM.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
public static HttpMethod fromString(String s) {
if (s == null)
return null;
public static HttpMethod fromString(String s) {
if (s == null)
return null;
- if (s.equalsIgnoreCase("get"))
+ if (("get").equalsIgnoreCase(s))
- if (s.equalsIgnoreCase("post"))
+ if (("post").equalsIgnoreCase(s))
- if (s.equalsIgnoreCase("put"))
+ if (("put").equalsIgnoreCase(s))
- if (s.equalsIgnoreCase("delete"))
+ if (("delete").equalsIgnoreCase(s))
- if (s.equalsIgnoreCase("patch"))
+ if (("patch").equalsIgnoreCase(s))
return PATCH;
throw new IllegalArgumentException("Invalid value for HTTP Method: " + s);
}
return PATCH;
throw new IllegalArgumentException("Invalid value for HTTP Method: " + s);
}