-
Notifications
You must be signed in to change notification settings - Fork 426
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Strings literals should be placed on the left side when checking for …
…equality
- Loading branch information
1 parent
2c3887d
commit 9b7e127
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9b7e127
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this method expect the caller to allocate the String array? I think it's only used in one place (directly above the method definition one line 93) but it seems odd to do it like that. It's particularly weird as the modifiable parameter,
msgArgs
, isn't the first argument ofbuildMsgParams(...)
either.I say change the method to return
String[]
, allocate it within the method, and removemsgArgs
parameter.