title: 'Unchecked call' on ArrayList
body: <p>I don't understand why I'm having this errors and how to solve them, on the following code in mine MainActivity file. I've searched on Google but I can't relate the solutions to mine code. I have also passed -Xlint:unchecked to javac, but can't get any wiser either. </p>
  
  <p>I'm pretty new to Android and Java programming and trying to solve any highlights in mine code.</p>
  
  <p>Thanks in advance.</p>
  
  <blockquote>
    <p>Unchecked assignment: 'java.util.ArrayList' to
    'java.util.ArrayList' less... (Ctrl+F1)  Signals
    places where an unchecked warning is issued by the compiler, for
    example:</p>
    
    <p>void f(HashMap map) {
        map.put("key", "value");   }    Hint: Pass -Xlint:unchecked to javac to get more details.</p>
  </blockquote>
  
  <hr>
  
  <blockquote>
    <p>Unchecked call to 'ArrayList(Collection)' as a member of
    raw type 'java.util.ArrayList' less... (Ctrl+F1)  Signals places where
    an unchecked warning is issued by the compiler, for example:</p>
    
    <p>void f(HashMap map) {
        map.put("key", "value");   }    Hint: Pass -Xlint:unchecked to javac to get more details.</p>
  </blockquote>
  
  <hr>
  
  <pre><code>private void readItems() {
      File filesDir = getFilesDir();
      File todoFile = new File(filesDir, "todo.txt");
      try {
          items = new ArrayList&lt;&gt;(FileUtils.readLines(todoFile));
      } catch (IOException e) {
          items = new ArrayList&lt;&gt;();
      }
  }
  </code></pre>