I get an error in Sonar-Correctness - Double assignment of field
<p>I am in my early days as a developer and need help to resolve the Sonar error which says double assignment of field for the below code.</p>

<pre><code>//Inside constructor
list1 = new ArrayList();
....
...
// in some method
  if(description.equalsIgnoreCase(MAPPED_CATIA_MODELS)) {
        tempList = new ArrayList();
        tempList = list1 ; // gives error here as "Correctness - Double assignment of field."
        addKey = true;
      }
</code></pre>

<p>Please suggest what needs to be changed. 
Thanks.</p>
