#vulnerable code 
                                public static void main(String[] args) throws IOException {
        FileInputStream lexiconInput = new FileInputStream(args[0]);
        FileInputStream matrixInput = new FileInputStream(args[1]);
        FileOutputStream output = new FileOutputStream(args[2]);

        DictionaryBuilder builder = new DictionaryBuilder();
        builder.build(lexiconInput, matrixInput, output);
    } 
                            #location 8 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public static void main(String[] args) throws IOException {
        try (FileInputStream lexiconInput = new FileInputStream(args[0]);
             FileInputStream matrixInput = new FileInputStream(args[1]);
             FileOutputStream output = new FileOutputStream(args[2])) {

            DictionaryBuilder builder = new DictionaryBuilder();
            builder.build(lexiconInput, matrixInput, output);
        }
    }