Responsive Ad Area

Share This Post

test

Lint Warning: Variable is already assigned to this value

I get the lint warning

Variable is already assigned to this value

when doing something like the following

String[] sa =getStringArray();
sa = modifyArrayandMakeAwesomer(sa);  //get the warning here

Seems to be a new warning for me. Perhaps my lint settings have changed. The code works as expected without any errors. Is it bad practice? Should I declare a second string array?


Lint Warning: Variable is already assigned to this value
Lint Warning: Variable is already assigned to this value
test
{$excerpt:n}

Share This Post

Leave a Reply

Your email address will not be Publishedd. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Skip to toolbar