284285286287288289290291292293294
reader = ReaderFactory.newPlatformReader( file ); } try { pmd.processFile( reader, sets[idx], ruleContext ); } finally { reader.close(); }