#fixed code
                                @Before
    public void setUp() throws Exception {
        final ClassLoader classLoader = getClass().getClassLoader();
        final InputStream in = classLoader.getResourceAsStream(SOURCE_FILE);
        Assert.assertNotNull(in);
        final PublicSuffixList suffixList;
        try {
            final org.apache.http.conn.util.PublicSuffixListParser parser = new org.apache.http.conn.util.PublicSuffixListParser();
            suffixList = parser.parse(new InputStreamReader(in, Consts.UTF_8));
        } finally {
            in.close();
        }
        final PublicSuffixMatcher matcher = new PublicSuffixMatcher(suffixList.getRules(), suffixList.getExceptions());
        this.filter = new PublicSuffixDomainFilter(new RFC2109DomainHandler(), matcher);
    }
#vulnerable code 
                                @Before
    public void setUp() throws Exception {
        final Reader r = new InputStreamReader(getClass().getResourceAsStream(LIST_FILE), "UTF-8");
        filter = new PublicSuffixFilter(new RFC2109DomainHandler());
        final PublicSuffixListParser parser = new PublicSuffixListParser(filter);
        parser.parse(r);
    } 
                            #location 6 
                            #vulnerability type RESOURCE_LEAK