src/main/java/org/apache/bval/bench/Config.java
private Properties loadDefaultProperties(ClassLoader cl) {
        Properties defaultProperties = new Properties();
        InputStream dpStream = cl.getResourceAsStream(DEFAULT_PROPERTIES_RES);
        if (dpStream == null) {
            throw new RuntimeException("Could not locate default properties file: " + DEFAULT_PROPERTIES_RES + " in the classpath.");
        }
        try {
            defaultProperties.load(dpStream);
            dpStream.close(); // No finally, an exception here terminates the program
        } catch (IOException e) {
            throw new RuntimeException("Error while reading default properties file.", e);
        }
        return defaultProperties;
    }
/**
     * Load the file {@link #DEFAULT_PROPERTIES_RES}.
     * 
     * @param cl
     *            A classloader from which the properties file will be read.
     * @return A properties object with the default configuration values.
     */
Load the file  #DEFAULT_PROPERTIES_RES.

@param cl
A classloader from which the properties file will be read.
@return A properties object with the default configuration values.
Load the file #DEFAULT_PROPERTIES_RES . @param cl A classloader from which the properties file will be read . @return A properties object with the default configuration values .
private Properties loadDefaultProperties(ClassLoader cl) {
        Properties defaultProperties = new Properties();
        InputStream dpStream = cl.getResourceAsStream(DEFAULT_PROPERTIES_RES);
        if (dpStream == null) {
            throw new RuntimeException("Could not locate default properties file: " + DEFAULT_PROPERTIES_RES + " in the classpath.");
        }
        try {
            defaultProperties.load(dpStream);
            dpStream.close(); 
        } catch (IOException e) {
            throw new RuntimeException("Error while reading default properties file.", e);
        }
        return defaultProperties;
    }
private Properties loadDefaultProperties ( ClassLoader cl ) { Properties defaultProperties = new Properties ( ) ; InputStream dpStream = cl . getResourceAsStream ( DEFAULT_PROPERTIES_RES ) ; if ( dpStream == null ) { throw new RuntimeException ( "Could not locate default properties file: " + DEFAULT_PROPERTIES_RES + " in the classpath." ) ; } try { defaultProperties . load ( dpStream ) ; dpStream . close ( ) ; } catch ( IOException e ) { throw new RuntimeException ( "Error while reading default properties file." , e ) ; } return defaultProperties ; }
Load the file {@link #DEFAULT_PROPERTIES_RES}.
Load the file { @link #DEFAULT_PROPERTIES_RES } .
// No finally, an exception here terminates the program