bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlosv...@apache.org
Subject svn commit: r955729 - in /incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench: ./ jsr303/ metatree/
Date Thu, 17 Jun 2010 20:20:15 GMT
Author: carlosvara
Date: Thu Jun 17 20:20:14 2010
New Revision: 955729

URL: http://svn.apache.org/viewvc?rev=955729&view=rev
Log:
Some comments & code cleaning

Added:
    incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/metatree/JavaBeanBasicField.java
      - copied, changed from r955668, incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/JavaBeanBasicField.java
    incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/metatree/JavaBeanRefField.java
      - copied, changed from r955668, incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/JavaBeanRefField.java
Removed:
    incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/JavaBeanBasicField.java
    incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/JavaBeanRefField.java
Modified:
    incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/Annotable.java
    incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/AnnotatorVisitor.java
    incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/Config.java
    incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/Generator.java
    incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/Util.java
    incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/jsr303/Jsr303Annotator.java
    incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/jsr303/Jsr303MetaAnnotationSet.java
    incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/jsr303/MetaGroup.java
    incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/metatree/MetaJavaBean.java

Modified: incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/Annotable.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/Annotable.java?rev=955729&r1=955728&r2=955729&view=diff
==============================================================================
--- incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/Annotable.java
(original)
+++ incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/Annotable.java
Thu Jun 17 20:20:14 2010
@@ -32,14 +32,16 @@ public interface Annotable {
      * Visitor method to accept an annotator.
      * 
      * @param annotator
+     *            A concrete implementation of an annotator visitor.
      */
     void accept(AnnotatorVisitor annotator);
-    
+
     /**
      * Adds an annotation to this element.
      * 
-     * @param annot The annotation to add.
+     * @param annot
+     *            The annotation to add.
      */
     void addAnnotation(MetaAnnotation annot);
-    
+
 }

Modified: incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/AnnotatorVisitor.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/AnnotatorVisitor.java?rev=955729&r1=955728&r2=955729&view=diff
==============================================================================
--- incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/AnnotatorVisitor.java
(original)
+++ incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/AnnotatorVisitor.java
Thu Jun 17 20:20:14 2010
@@ -18,11 +18,11 @@
  */
 package org.apache.bval.bench;
 
+import org.apache.bval.bench.metatree.JavaBeanBasicField;
+import org.apache.bval.bench.metatree.JavaBeanRefField;
 import org.apache.bval.bench.metatree.MetaJavaBean;
 
 
-// TODO: Classes must be processed by visiting, same as fields
-
 /**
  * All the methods that an annotator must implement to be able to visit and
  * annotate all the meta tree.
@@ -32,9 +32,9 @@ import org.apache.bval.bench.metatree.Me
 public interface AnnotatorVisitor {
 
     void annotate(JavaBeanRefField jbrf);
-    
+
     void annotate(JavaBeanBasicField jbbf);
-    
+
     void annotate(MetaJavaBean mjb);
-    
+
 }

Modified: incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/Config.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/Config.java?rev=955729&r1=955728&r2=955729&view=diff
==============================================================================
--- incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/Config.java
(original)
+++ incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/Config.java
Thu Jun 17 20:20:14 2010
@@ -39,92 +39,134 @@ import java.util.Random;
 public enum Config {
 
     CFG();
-    
+
     private static final String DEFAULT_PROPERTIES_RES = "generator.default.properties";
     private static final String USER_PROPERTIES_RES = "generator.properties";
-    
+
     private final Random r;
     private final Properties p;
-    
+
     private Config() {
-        
+
         // Read the config
         p = readConfigProperties();
-        
+
         // Init random generator
         r = new Random(new Long(p.getProperty("generator.rnd.seed")));
     }
-    
+
+    /**
+     * @return The base directory where the generated classes will be output.
+     */
     public String getOutputDir() {
         return p.getProperty("generator.outputdir");
     }
-    
-    public String getBasePackageName() {
-        return p.getProperty("generator.pkg.base");
-    }
-    
+
+    /**
+     * @return The name of the package where the generated beans will be placed.
+     */
     public String getBeansPackageName() {
         return p.getProperty("generator.pkg.beans");
     }
-    
+
+    /**
+     * @return The name of the package where the generated groups will be
+     *         placed.
+     */
     public String getGroupsPackageName() {
         return p.getProperty("generator.pkg.groups");
     }
-    
+
+    /**
+     * @return The name of the package where other generated resources will be
+     *         placed.
+     */
+    public String getBasePackageName() {
+        return p.getProperty("generator.pkg.base");
+    }
+
+    /**
+     * @return The total number of beans to generate.
+     */
     public int getNumBeans() {
         return new Integer(p.getProperty("generator.numbeans"));
     }
-    
+
+    /**
+     * @return The total number of groups to generate.
+     */
     public int getNumGroups() {
         return new Integer(p.getProperty("generator.numgroups"));
     }
-    
+
+    // TODO: remove this method
     public Random getRandomGen() {
         return r;
     }
-    
+
+    /**
+     * @return The number of basic fields that a bean should have.
+     */
     public int rndNumFields() {
         int min = new Integer(p.getProperty("generator.basicfields.min"));
         int dif = new Integer(p.getProperty("generator.basicfields.max")) - min;
         return min + r.nextInt(dif);
     }
-    
-    public int rndNumInterralations() {
+
+    /**
+     * @return The number of fields referencing other beans that a bean should
+     *         have.
+     */
+    public int rndNumInterrelations() {
         int min = new Integer(p.getProperty("generator.reffields.min"));
         int dif = new Integer(p.getProperty("generator.reffields.max")) - min;
         return min + r.nextInt(dif);
     }
-    
+
+    /**
+     * @param level
+     *            The level of nesting.
+     * @return <code>true</code> if it's determined that a nested beanshould
be
+     *         added, <code>false</code> otherwise.
+     */
     public boolean shouldAddNestedBean(int level) {
-        if ( level == 0 ) {
+        if (level == 0) {
             return r.nextDouble() < new Double(p.getProperty("generator.level1.fillrate"));
-        }
-        else if ( level == 1 ) {
+        } else if (level == 1) {
             return r.nextDouble() < new Double(p.getProperty("generator.level2.fillrate"));
-        }
-        else if ( level == 2 ) {
+        } else if (level == 2) {
             return r.nextDouble() < new Double(p.getProperty("generator.level3.fillrate"));
-        }
-        else {
+        } else {
             return false;
         }
     }
-    
-    
+
+
+    /**
+     * @return A properties object with the default configuration values
+     *         overriden by any user set values.
+     */
     private Properties readConfigProperties() {
         ClassLoader cl = Thread.currentThread().getContextClassLoader();
-        if ( cl == null ) {
+        if (cl == null) {
             throw new RuntimeException("Could not obtain a class loader.");
         }
         Properties tmp = loadDefaultProperties(cl);
         tmp = overrideDefaultProperties(cl, tmp);
         return tmp;
     }
-    
+
+    /**
+     * 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.
+     */
     private Properties loadDefaultProperties(ClassLoader cl) {
         Properties defaultProperties = new Properties();
         InputStream dpStream = cl.getResourceAsStream(DEFAULT_PROPERTIES_RES);
-        if ( dpStream == null ) {
+        if (dpStream == null) {
             throw new RuntimeException("Could not locate default properties file: " + DEFAULT_PROPERTIES_RES
+ " in the classpath.");
         }
         try {
@@ -135,13 +177,23 @@ public enum Config {
         }
         return defaultProperties;
     }
-    
+
+    /**
+     * Load the file {@link #USER_PROPERTIES_RES}.
+     * 
+     * @param cl
+     *            A classloader from which the properties file will be read.
+     * @param defaultProperties
+     *            A properties object with the default configuration values.
+     * @return A properties object with the default values overriden by the
+     *         user.
+     */
     private Properties overrideDefaultProperties(ClassLoader cl, Properties defaultProperties)
{
         InputStream upStream = cl.getResourceAsStream(USER_PROPERTIES_RES);
-        if ( upStream == null ) {
+        if (upStream == null) {
             return defaultProperties;
         }
-        
+
         Properties userProperties = new Properties(defaultProperties);
         try {
             userProperties.load(upStream);
@@ -151,5 +203,5 @@ public enum Config {
         }
         return userProperties;
     }
-    
+
 }

Modified: incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/Generator.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/Generator.java?rev=955729&r1=955728&r2=955729&view=diff
==============================================================================
--- incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/Generator.java
(original)
+++ incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/Generator.java
Thu Jun 17 20:20:14 2010
@@ -25,6 +25,8 @@ import java.util.List;
 import org.apache.bval.bench.jsr303.Jsr303Annotator;
 import org.apache.bval.bench.jsr303.MetaGroup;
 import org.apache.bval.bench.metatree.AbstractMetaField;
+import org.apache.bval.bench.metatree.JavaBeanBasicField;
+import org.apache.bval.bench.metatree.JavaBeanRefField;
 import org.apache.bval.bench.metatree.MetaJavaBean;
 import com.google.common.collect.Lists;
 import com.sun.codemodel.JBlock;

Modified: incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/Util.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/Util.java?rev=955729&r1=955728&r2=955729&view=diff
==============================================================================
--- incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/Util.java
(original)
+++ incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/Util.java
Thu Jun 17 20:20:14 2010
@@ -22,47 +22,65 @@ import com.sun.codemodel.JAnnotationUse;
 import com.sun.codemodel.JExpr;
 import com.sun.codemodel.JExpression;
 
+
+/**
+ * Convenience methods to facilitate the work with primitive types and
+ * CodeModel's literal expresions.
+ * 
+ * @author Carlos Vara
+ */
 public final class Util {
 
     private Util() {
         // No instances please
     }
-    
-    // Not very clean, but as there is a fixed amount of types...
+
+    /**
+     * Calls the correct {@link JExpr} <code>lit</code> method.
+     * 
+     * @param value
+     *            The literal value that must be output in an expresion.
+     * @return The matching expression for the real type of value.
+     */
     public static JExpression literalExpr(Object value) {
-        if ( value == null ) {
+        if (value == null) {
             return JExpr._null();
-        } else if ( value instanceof String ) {
-            return JExpr.lit((String)value);
-        } else if ( value instanceof Integer ) {
-            return JExpr.lit((Integer)value);
+        } else if (value instanceof String) {
+            return JExpr.lit((String) value);
+        } else if (value instanceof Integer) {
+            return JExpr.lit((Integer) value);
         }
-        
+
         throw new RuntimeException("Impossible to construct initial value for: " + value);
     }
 
-    // Not very clean, but as there is a fixed amount of types...
+
+    /**
+     * Calls the correct {@link JAnnotationUse} <code>param</code> method.
+     * 
+     * @param annot
+     *            The annotation in which the parameter will be added.
+     * @param key
+     *            The parameter's key.
+     * @param value
+     *            The parameter's value.
+     */
     public static void addAnnotParam(JAnnotationUse annot, String key, Object value) {
         // TODO: Remove comparisons with primitive type class?
-        if ( value == null ) {
+        if (value == null) {
             // Null values not accepted
             throw new RuntimeException("Null values not supported as annotation parameters");
-        }
-        else if ( value instanceof Boolean || value.getClass() == boolean.class ) {
-            annot.param(key, (Boolean)value);
-        }
-        else if (value instanceof Integer ) {
-            annot.param(key, (Integer)value);
-        }
-        else if ( value instanceof String ) {
-            annot.param(key, (String)value);
-        }
-        else if ( value instanceof Class<?> ) {
-            annot.param(key, (Class<?>)value);
-        }
-        else {
+        } else if (value instanceof Boolean || value.getClass() == boolean.class) {
+            annot.param(key, (Boolean) value);
+        } else if (value instanceof Integer) {
+            annot.param(key, (Integer) value);
+        } else if (value instanceof String) {
+            annot.param(key, (String) value);
+        } else if (value instanceof Class<?>) {
+            annot.param(key, (Class<?>) value);
+        } else {
             throw new RuntimeException("Impossible to construct annotation param for: " +
value);
         }
     }
-    
+
 }

Modified: incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/jsr303/Jsr303Annotator.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/jsr303/Jsr303Annotator.java?rev=955729&r1=955728&r2=955729&view=diff
==============================================================================
--- incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/jsr303/Jsr303Annotator.java
(original)
+++ incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/jsr303/Jsr303Annotator.java
Thu Jun 17 20:20:14 2010
@@ -42,9 +42,9 @@ import org.apache.bval.bench.AnnotationT
 import org.apache.bval.bench.AnnotatorVisitor;
 import org.apache.bval.bench.BasicType;
 import org.apache.bval.bench.Config;
-import org.apache.bval.bench.JavaBeanBasicField;
-import org.apache.bval.bench.JavaBeanRefField;
 import org.apache.bval.bench.metatree.AbstractMetaField;
+import org.apache.bval.bench.metatree.JavaBeanBasicField;
+import org.apache.bval.bench.metatree.JavaBeanRefField;
 import org.apache.bval.bench.metatree.MetaAnnotation;
 import org.apache.bval.bench.metatree.MetaJavaBean;
 import com.google.common.collect.ArrayListMultimap;

Modified: incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/jsr303/Jsr303MetaAnnotationSet.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/jsr303/Jsr303MetaAnnotationSet.java?rev=955729&r1=955728&r2=955729&view=diff
==============================================================================
--- incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/jsr303/Jsr303MetaAnnotationSet.java
(original)
+++ incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/jsr303/Jsr303MetaAnnotationSet.java
Thu Jun 17 20:20:14 2010
@@ -20,12 +20,13 @@ package org.apache.bval.bench.jsr303;
 
 import java.util.List;
 import java.util.Set;
-
 import org.apache.bval.bench.metatree.MetaAnnotation;
 
+
 /**
  * This class groups a set of JSR-303 {@link MetaAnnotation} with a list of
- * valid values and a list of invalid values.
+ * valid values and a list of invalid values for the stored combination of
+ * annotations.
  * 
  * @author Carlos Vara
  */
@@ -34,10 +35,10 @@ public class Jsr303MetaAnnotationSet {
     // The annotations
     private final Set<MetaAnnotation> annotations;
     
-    // A set of valid values
+    // A list of valid values
     private final List<Object> validValues;
     
-    // A set of invalid values
+    // A list of invalid values
     private final List<Object> invalidValues;
     
     

Modified: incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/jsr303/MetaGroup.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/jsr303/MetaGroup.java?rev=955729&r1=955728&r2=955729&view=diff
==============================================================================
--- incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/jsr303/MetaGroup.java
(original)
+++ incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/jsr303/MetaGroup.java
Thu Jun 17 20:20:14 2010
@@ -21,6 +21,7 @@ package org.apache.bval.bench.jsr303;
 import org.apache.bval.bench.metatree.AbstractMetaInterface;
 import com.sun.codemodel.JCodeModel;
 
+
 /**
  * The declaration of a JSR-303 group.
  * 
@@ -31,5 +32,5 @@ public class MetaGroup extends AbstractM
     public MetaGroup(JCodeModel cm, String fqn) {
         super(cm, fqn);
     }
-    
+
 }

Copied: incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/metatree/JavaBeanBasicField.java
(from r955668, incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/JavaBeanBasicField.java)
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/metatree/JavaBeanBasicField.java?p2=incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/metatree/JavaBeanBasicField.java&p1=incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/JavaBeanBasicField.java&r1=955668&r2=955729&rev=955729&view=diff
==============================================================================
--- incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/JavaBeanBasicField.java
(original)
+++ incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/metatree/JavaBeanBasicField.java
Thu Jun 17 20:20:14 2010
@@ -16,14 +16,14 @@
  * specific language governing permissions and limitations
  * under the License.    
  */
-package org.apache.bval.bench;
+package org.apache.bval.bench.metatree;
 
 import java.util.List;
-import org.apache.bval.bench.metatree.AbstractMetaField;
-import org.apache.bval.bench.metatree.MetaAnnotation;
-import org.apache.bval.bench.metatree.MetaJavaBean;
+import org.apache.bval.bench.Annotable;
+import org.apache.bval.bench.AnnotatorVisitor;
+import org.apache.bval.bench.BasicType;
+import org.apache.bval.bench.Util;
 import com.sun.codemodel.JAnnotationUse;
-import com.sun.codemodel.JBlock;
 import com.sun.codemodel.JDefinedClass;
 import com.sun.codemodel.JExpr;
 import com.sun.codemodel.JMethod;

Copied: incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/metatree/JavaBeanRefField.java
(from r955668, incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/JavaBeanRefField.java)
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/metatree/JavaBeanRefField.java?p2=incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/metatree/JavaBeanRefField.java&p1=incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/JavaBeanRefField.java&r1=955668&r2=955729&rev=955729&view=diff
==============================================================================
--- incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/JavaBeanRefField.java
(original)
+++ incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/metatree/JavaBeanRefField.java
Thu Jun 17 20:20:14 2010
@@ -16,11 +16,11 @@
  * specific language governing permissions and limitations
  * under the License.    
  */
-package org.apache.bval.bench;
+package org.apache.bval.bench.metatree;
 
-import org.apache.bval.bench.metatree.AbstractMetaField;
-import org.apache.bval.bench.metatree.MetaAnnotation;
-import org.apache.bval.bench.metatree.MetaJavaBean;
+import org.apache.bval.bench.Annotable;
+import org.apache.bval.bench.AnnotatorVisitor;
+import org.apache.bval.bench.Util;
 import com.sun.codemodel.JAnnotationUse;
 import com.sun.codemodel.JBlock;
 import com.sun.codemodel.JDefinedClass;

Modified: incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/metatree/MetaJavaBean.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/metatree/MetaJavaBean.java?rev=955729&r1=955728&r2=955729&view=diff
==============================================================================
--- incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/metatree/MetaJavaBean.java
(original)
+++ incubator/bval/sandbox/jsr303-impl-bench/src/main/java/org/apache/bval/bench/metatree/MetaJavaBean.java
Thu Jun 17 20:20:14 2010
@@ -25,8 +25,6 @@ import java.util.Set;
 import org.apache.bval.bench.Annotable;
 import org.apache.bval.bench.AnnotatorVisitor;
 import org.apache.bval.bench.Config;
-import org.apache.bval.bench.JavaBeanBasicField;
-import org.apache.bval.bench.JavaBeanRefField;
 import org.apache.bval.bench.Util;
 import com.google.common.collect.Maps;
 import com.google.common.collect.Sets;
@@ -87,7 +85,7 @@ public class MetaJavaBean extends Abstra
      */
     public void interrelate(List<MetaJavaBean> beans) {
 
-        final int numInterrelations = Config.CFG.rndNumInterralations();
+        final int numInterrelations = Config.CFG.rndNumInterrelations();
 
         for (int i = 0; i < numInterrelations; ++i) {
             int refIndex = Config.CFG.getRandomGen().nextInt(beans.size());



Mime
View raw message