Adding a char
array through dedicated for loop instead of a string
#621
Labels
char
array through dedicated for loop instead of a string
#621
What it does
This lint seems more like an edge-case, so the value of it, is questionable.
The main idea is that some code can be simplified by invoking the
String
constructor for char arrays and then using the string value instead.Lint Name
USE_STRING_CONSTRUCTOR
Category
api
Example
Could be written as:
Similarly this could detect redundant conversions to string like:
Could be written as:
The text was updated successfully, but these errors were encountered: