Aviso ArrayList é um tipo bruto. Referências ao tipo genérico ArrayList <E> devem ser parametrizadas [duplicado]

Duplicata Possível:
ArrayList é um tipo bruto. Referências ao tipo genérico ArrayList <E> devem ser parametrizadas

Para salvar uma ArrayList com pagamentos feitos por um membro, quero alterar a Lista de IDs de pagamento em uma string, portanto, criei o seguinte método:

public String fromArraytoString(ArrayList items){
       JSONObject json = new JSONObject();
        json.put("uniqueArrays", new JSONArray(items));
        return json.toString();
           }

Mas recebo o seguinte aviso:

   ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized

Alguém pode me explicar por quê?

questionAnswers(4)

yourAnswerToTheQuestion