private static int getIntProperty()

in microbench/src/main/java/com/twitter/hpack/microbench/AbstractMicrobenchmarkBase.java [170:185]


    private static int getIntProperty(String key, int def) {
        String value = System.getProperty(key);
        if (value == null) {
            return def;
        }

        try {
            return Integer.parseInt(value);
        } catch (NumberFormatException e) {
            logger.warning(
                    "Unable to parse the integer system property '" + key + "':" + value + " - " +
                            "using the default value: " + def);
        }

        return def;
    }