Return-Path: X-Original-To: apmail-bval-commits-archive@www.apache.org Delivered-To: apmail-bval-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7004817A01 for ; Tue, 6 Jan 2015 00:58:20 +0000 (UTC) Received: (qmail 74738 invoked by uid 500); 6 Jan 2015 00:58:21 -0000 Delivered-To: apmail-bval-commits-archive@bval.apache.org Received: (qmail 74705 invoked by uid 500); 6 Jan 2015 00:58:21 -0000 Mailing-List: contact commits-help@bval.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@bval.apache.org Delivered-To: mailing list commits@bval.apache.org Received: (qmail 74694 invoked by uid 99); 6 Jan 2015 00:58:21 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jan 2015 00:58:21 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id 55176AC0024; Tue, 6 Jan 2015 00:58:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@bval.apache.org From: mbenson@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150106005821.55176AC0024@hades.apache.org> 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.
+ * Description: hold the relationship annotation->validatedBy[] ConstraintValidator classes that are already parsed in a + * cache.
*/ public class ConstraintCached { private final Map, Class>[]> classes = - new HashMap, Class>[]>(); + new HashMap, Class>[]>(); /** * Record the set of validator classes for a given constraint annotation. + * * @param annotationClass * @param definitionClasses */ public void putConstraintValidator(Class annotationClass, - Class>[] definitionClasses) { + Class>[] 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 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 Class>[] getConstraintValidators( - Class annotationClass) { + Class annotationClass) { return (Class>[]) classes.get(annotationClass); }