Here you can find the source of closeReader(BufferedReader reader)
public static void closeReader(BufferedReader reader)
//package com.java2s; //License from project: Apache License import java.io.*; import java.util.Objects; public class Main { public static void closeReader(BufferedReader reader) { if (Objects.isNull(reader)) { return; }//ww w. j a va 2 s .c o m try { reader.close(); } catch (IOException e) { e.printStackTrace(); } } }