私は開発者としての初期の頃であり、以下のコードのフィールドの二重割り当てを示す Sonar エラーを解決するために助けが必要です。
//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;
      }
何を変更する必要があるかを提案してください。ありがとう。