private static List<String> readLines(Reader in) throws IOException {
  List<String> lines=new ArrayList<>();
  try {
    BufferedReader bin=new BufferedReader(in);
    for (String line=null; (line=bin.readLine()) != null; lines.add(line)) {
    }
  }
  finally {
    if (in != null) {
      try {
        in.close();
      }
 catch (      IOException var2) {
      }
    }
  }
  return lines;
}

private static List < String > readLines ( Reader in ) throws IOException { List < String > lines = new ArrayList < > ( ) ; try { BufferedReader bin = new BufferedReader ( in ) ; for ( String line = null ; ( line = bin . readLine ( ) ) != null ; lines . add ( line ) ) { } } finally { if ( in != null ) { try { in . close ( ) ; } catch ( IOException var2 ) { } } } return lines ; }
reads the contents of the supplied input stream into a list of lines . closes the reader on successful or failed completion .
