src/main/java/org/apache/bval/bench/Generator.java
private void createInheritanceGraph() {
        for (int i = 0; i < Config.CFG.getNumBaseBeans(); ++i) {
            MetaJavaBean mjb = new MetaJavaBean(cm, Config.CFG.getBeansPackageName() + ".BaseBean" + i, Config.CFG.rndNumFields());
            baseBeans.add(mjb);
        }
        for (MetaJavaBean mjb : beans) {
            if (Config.CFG.shouldInherit()) {
                mjb.setSuperClass(Config.CFG.getRandom(baseBeans));
            }
        }
    }
/**
     * Creates a list of base beans used as root of the inheritance tree, and
     * sets them as superclass of some of the beans in {@link #beans}.
     * <p>
     * POST: The {@link #baseBeans} list is filled with simple beans and some
     * beans in {@link #beans} mark them as their superclass.
     */
Creates a list of base beans used as root of the inheritance tree, and
sets them as superclass of some of the beans in  #beans.

POST: The  #baseBeans list is filled with simple beans and some
beans in  #beans mark them as their superclass.
Creates a list of base beans used as root of the inheritance tree and sets them as superclass of some of the beans in #beans . POST : The #baseBeans list is filled with simple beans and some beans in #beans mark them as their superclass .
private void createInheritanceGraph() {
        for (int i = 0; i < Config.CFG.getNumBaseBeans(); ++i) {
            MetaJavaBean mjb = new MetaJavaBean(cm, Config.CFG.getBeansPackageName() + ".BaseBean" + i, Config.CFG.rndNumFields());
            baseBeans.add(mjb);
        }
        for (MetaJavaBean mjb : beans) {
            if (Config.CFG.shouldInherit()) {
                mjb.setSuperClass(Config.CFG.getRandom(baseBeans));
            }
        }
    }
private void createInheritanceGraph ( ) { for ( int i = 0 ; i < Config . CFG . getNumBaseBeans ( ) ; ++ i ) { MetaJavaBean mjb = new MetaJavaBean ( cm , Config . CFG . getBeansPackageName ( ) + ".BaseBean" + i , Config . CFG . rndNumFields ( ) ) ; baseBeans . add ( mjb ) ; } for ( MetaJavaBean mjb : beans ) { if ( Config . CFG . shouldInherit ( ) ) { mjb . setSuperClass ( Config . CFG . getRandom ( baseBeans ) ) ; } } }
Creates a list of base beans used as root of the inheritance tree, and
 sets them as superclass of some of the beans in {@link #beans}.
Creates a list of base beans used as root of the inheritance tree and sets them as superclass of some of the beans in { @link #beans } .