commit | d5b33786282c6649b18a535ba9a0dbcdfc17ae1f | [log] [tgz] |
---|---|---|
author | Aditya Gupta <agaditya@codeaurora.org> | Wed Feb 03 23:03:25 2021 +0530 |
committer | Aditya Gupta <agaditya@codeaurora.org> | Tue May 25 10:46:57 2021 +0530 |
tree | 29f840c76bed1237ca729d21aadbd5918e7f86b7 | |
parent | 27305059618a9cd7a086145daec739ea6f798287 [diff] |
Fix major sonar issue related to rule "squid : S1132" Refactor code to place string literals on the left-hand side when checking for equality. This change fixes the following sonar code smell: It is preferable to place string literals on the left-hand side of an equals() or equalsIgnoreCase() method call. This prevents null pointer exceptions from being raised, as a string literal can never be null by definition. Change-Id: Iba6423e9b28c4b10f6808c7c8c342365b9f75f6b