bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1649700 - /bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/jsr/ConstraintCached.java
Date Tue, 06 Jan 2015 00:58:21 GMT
Author: mbenson
Date: Tue Jan  6 00:58:20 2015
New Revision: 1649700

URL: http://svn.apache.org/r1649700
Log:
format

Modified:
    bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/jsr/ConstraintCached.java

Modified: bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/jsr/ConstraintCached.java
URL: http://svn.apache.org/viewvc/bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/jsr/ConstraintCached.java?rev=1649700&r1=1649699&r2=1649700&view=diff
==============================================================================
--- bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/jsr/ConstraintCached.java
(original)
+++ bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/jsr/ConstraintCached.java
Tue Jan  6 00:58:20 2015
@@ -24,26 +24,29 @@ import java.util.HashMap;
 import java.util.Map;
 
 /**
- * Description: hold the relationship annotation->validatedBy[] ConstraintValidator classes
- * that are already parsed in a cache.<br/>
+ * Description: hold the relationship annotation->validatedBy[] ConstraintValidator classes
that are already parsed in a
+ * cache.<br/>
  */
 public class ConstraintCached {
     private final Map<Class<? extends Annotation>, Class<? extends ConstraintValidator<?,
?>>[]> classes =
-          new HashMap<Class<? extends Annotation>, Class<? extends ConstraintValidator<?,?>>[]>();
+        new HashMap<Class<? extends Annotation>, Class<? extends ConstraintValidator<?,
?>>[]>();
 
     /**
      * Record the set of validator classes for a given constraint annotation.
+     * 
      * @param annotationClass
      * @param definitionClasses
      */
     public <A extends Annotation> void putConstraintValidator(Class<A> annotationClass,
-                                                              Class<? extends ConstraintValidator<A,
?>>[] definitionClasses) {
+        Class<? extends ConstraintValidator<A, ?>>[] definitionClasses) {
         classes.put(annotationClass, definitionClasses);
     }
 
     /**
      * Learn whether we have cached the validator classes for the requested constraint annotation.
-     * @param annotationClass to look up
+     * 
+     * @param annotationClass
+     *            to look up
      * @return boolean
      */
     public boolean containsConstraintValidator(Class<? extends Annotation> annotationClass)
{
@@ -52,12 +55,14 @@ public class ConstraintCached {
 
     /**
      * Get the cached validator classes for the requested constraint annotation.
-     * @param annotationClass to look up
+     * 
+     * @param annotationClass
+     *            to look up
      * @return array of {@link ConstraintValidator} implementation types
      */
     @SuppressWarnings("unchecked")
     public <A extends Annotation> Class<? extends ConstraintValidator<A, ?>>[]
getConstraintValidators(
-          Class<A> annotationClass) {
+        Class<A> annotationClass) {
         return (Class<? extends ConstraintValidator<A, ?>>[]) classes.get(annotationClass);
     }
 



Mime
View raw message