Skip to content

Commit 2177243

Browse files
committed
HV-2022 Add a few missing javadoc comments
1 parent c3cbede commit 2177243

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+83
-34
lines changed

engine/src/main/java/org/hibernate/validator/BaseHibernateValidatorConfiguration.java

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
* Should not be used directly, prefer {@link HibernateValidatorConfiguration} or
4141
* {@link PredefinedScopeHibernateValidatorConfiguration}.
4242
*
43+
* @param <S> The actual type of the configuration.
44+
*
4345
* @author Emmanuel Bernard
4446
* @author Gunnar Morling
4547
* @author Kevin Pollet &lt;[email protected]&gt; (C) 2011 SERLI
@@ -75,8 +77,8 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
7577
String ALLOW_PARALLEL_METHODS_DEFINE_PARAMETER_CONSTRAINTS = "hibernate.validator.allow_parallel_method_parameter_constraint";
7678

7779
/**
78-
* @deprecated planned for removal. Use hibernate.validator.constraint_mapping_contributors instead.
7980
* @since 5.2
81+
* @deprecated planned for removal. Use hibernate.validator.constraint_mapping_contributors instead.
8082
*/
8183
@Deprecated
8284
String CONSTRAINT_MAPPING_CONTRIBUTOR = "hibernate.validator.constraint_mapping_contributor";
@@ -230,7 +232,6 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
230232
*
231233
* @return the default {@code ValueExtractor} implementations compliant
232234
* with the specification
233-
*
234235
* @since 6.0
235236
*/
236237
@Incubating
@@ -241,9 +242,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
241242
* will be added to the constraints configured via annotations and/or xml.
242243
*
243244
* @param mapping {@code ConstraintMapping} instance containing programmatic configured constraints
244-
*
245245
* @return {@code this} following the chaining method pattern
246-
*
247246
* @throws IllegalArgumentException if {@code mapping} is {@code null}
248247
*/
249248
S addMapping(ConstraintMapping mapping);
@@ -253,7 +252,6 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
253252
* will stop on the first constraint violation detected.
254253
*
255254
* @param failFast {@code true} to enable fail fast, {@code false} otherwise.
256-
*
257255
* @return {@code this} following the chaining method pattern
258256
*/
259257
S failFast(boolean failFast);
@@ -269,9 +267,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
269267
* last fallback through Hibernate Validator's own class loader.
270268
*
271269
* @param externalClassLoader The class loader for loading user-provided resources.
272-
*
273270
* @return {@code this} following the chaining method pattern
274-
*
275271
* @since 5.2
276272
*/
277273
S externalClassLoader(ClassLoader externalClassLoader);
@@ -288,9 +284,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
288284
* </pre>
289285
*
290286
* @param allow flag determining whether validation will allow overriding to alter parameter constraints.
291-
*
292287
* @return {@code this} following the chaining method pattern
293-
*
294288
* @since 5.3
295289
*/
296290
S allowOverridingMethodAlterParameterConstraint(boolean allow);
@@ -308,9 +302,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
308302
* </pre>
309303
*
310304
* @param allow flag determining whether validation will allow multiple cascaded validation on return values.
311-
*
312305
* @return {@code this} following the chaining method pattern
313-
*
314306
* @since 5.3
315307
*/
316308
S allowMultipleCascadedValidationOnReturnValues(boolean allow);
@@ -328,9 +320,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
328320
* </pre>
329321
*
330322
* @param allow flag determining whether validation will allow parameter constraints in parallel hierarchies
331-
*
332323
* @return {@code this} following the chaining method pattern
333-
*
334324
* @since 5.3
335325
*/
336326
S allowParallelMethodsDefineParameterConstraints(boolean allow);
@@ -344,9 +334,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
344334
*
345335
* @param enabled flag determining whether per validation call caching is enabled for {@code TraversableResolver}
346336
* results.
347-
*
348337
* @return {@code this} following the chaining method pattern
349-
*
350338
* @since 6.0.3
351339
*/
352340
S enableTraversableResolverResultCache(boolean enabled);
@@ -356,9 +344,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
356344
* used to evaluate script expressions for {@link ScriptAssert} and {@link ParameterScriptAssert} constraints.
357345
*
358346
* @param scriptEvaluatorFactory the {@link ScriptEvaluatorFactory} to be used
359-
*
360347
* @return {@code this} following the chaining method pattern
361-
*
362348
* @since 6.0.3
363349
*/
364350
@Incubating
@@ -369,9 +355,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
369355
* {@link Past}/{@link PastOrPresent} and {@link Future}/{@link FutureOrPresent}.
370356
*
371357
* @param temporalValidationTolerance the acceptable tolerance
372-
*
373358
* @return {@code this} following the chaining method pattern
374-
*
375359
* @since 6.0.5
376360
*/
377361
@Incubating
@@ -382,9 +366,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
382366
* times, only the payload passed last will be propagated.
383367
*
384368
* @param constraintValidatorPayload the payload passed to constraint validators
385-
*
386369
* @return {@code this} following the chaining method pattern
387-
*
388370
* @since 6.0.8
389371
*/
390372
@Incubating
@@ -395,9 +377,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
395377
* or not.
396378
*
397379
* @param getterPropertySelectionStrategy the {@link GetterPropertySelectionStrategy} to be used
398-
*
399380
* @return {@code this} following the chaining method pattern
400-
*
401381
* @since 6.1.0
402382
*/
403383
@Incubating
@@ -408,9 +388,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
408388
* when constructing a property path as the one returned by {@link ConstraintViolation#getPropertyPath()}.
409389
*
410390
* @param propertyNodeNameProvider the {@link PropertyNodeNameProvider} to be used
411-
*
412391
* @return {@code this} following the chaining method pattern
413-
*
414392
* @since 6.1.0
415393
*/
416394
@Incubating
@@ -458,9 +436,7 @@ default S locales(Locale... locales) {
458436
* Allows setting a locale resolver, defining how the locale will be resolved when interpolating the message of a constraint violation.
459437
*
460438
* @param localeResolver the {@link LocaleResolver} to be used
461-
*
462439
* @return {@code this} following the chaining method pattern
463-
*
464440
* @since 6.1.1
465441
*/
466442
@Incubating
@@ -479,7 +455,6 @@ default S locales(Locale... locales) {
479455
*
480456
* @param expressionLanguageFeatureLevel the {@link ExpressionLanguageFeatureLevel} to be used
481457
* @return {@code this} following the chaining method pattern
482-
*
483458
* @since 6.2
484459
*/
485460
@Incubating
@@ -492,7 +467,6 @@ default S locales(Locale... locales) {
492467
*
493468
* @param expressionLanguageFeatureLevel the {@link ExpressionLanguageFeatureLevel} to be used
494469
* @return {@code this} following the chaining method pattern
495-
*
496470
* @since 6.2
497471
*/
498472
@Incubating
@@ -505,7 +479,6 @@ default S locales(Locale... locales) {
505479
*
506480
* @param enabled flag determining whether validated values will be printed out into trace level logs or not.
507481
* @return {@code this} following the chaining method pattern
508-
*
509482
* @since 8.0
510483
*/
511484
@Incubating
@@ -517,9 +490,7 @@ default S locales(Locale... locales) {
517490
* constraints generated a violation.
518491
*
519492
* @param failFastOnPropertyViolation {@code true} to enable the skipping mode, {@code false} otherwise.
520-
*
521493
* @return {@code this} following the chaining method pattern
522-
*
523494
* @since 9.0
524495
*/
525496
@Incubating

engine/src/main/java/org/hibernate/validator/cfg/GenericConstraintDef.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* {@link GenericConstraintDef#param(String, Object)} which allows to add
1616
* arbitrary constraint parameters.
1717
*
18+
* @param <A> The constraint annotation type.
1819
* @author Hardy Ferentschik
1920
* @author Gunnar Morling
2021
*/

engine/src/main/java/org/hibernate/validator/cfg/context/Cascadable.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* Facet of a constraint mapping creational context which allows to mark the underlying
1111
* element as to be validated in a cascaded way.
1212
*
13+
* @param <C> The concrete type of the cascadable.
1314
* @author Gunnar Morling
1415
* @author Kevin Pollet &lt;[email protected]&gt; (C) 2011 SERLI
1516
*/

engine/src/main/java/org/hibernate/validator/cfg/context/ConstraintDefinitionContext.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public interface ConstraintDefinitionContext<A extends Annotation> extends Const
4444
/**
4545
* Allows to configure a validation implementation using a Lambda expression or method reference. Useful for simple
4646
* validations without the need for accessing constraint properties or customization of error messages etc.
47-
* <p>
4847
*
4948
* @param type The type of the value to validate
5049
* @return This context for method chaining

engine/src/main/java/org/hibernate/validator/cfg/defs/AssertFalseDef.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import org.hibernate.validator.cfg.ConstraintDef;
1212

1313
/**
14+
* An {@link AssertFalse} constraint definition.
1415
* @author Hardy Ferentschik
1516
*/
1617
public class AssertFalseDef extends ConstraintDef<AssertFalseDef, AssertFalse> {

engine/src/main/java/org/hibernate/validator/cfg/defs/AssertTrueDef.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import org.hibernate.validator.cfg.ConstraintDef;
1212

1313
/**
14+
* An {@link AssertTrue} constraint definition.
15+
*
1416
* @author Hardy Ferentschik
1517
*/
1618
public class AssertTrueDef extends ConstraintDef<AssertTrueDef, AssertTrue> {

engine/src/main/java/org/hibernate/validator/cfg/defs/BitcoinAddressDef.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import org.hibernate.validator.constraints.BitcoinAddress;
1212

1313
/**
14+
* A {@link BitcoinAddress} constraint definition.
15+
*
1416
* @author José Yoshiriro
1517
* @since 9.0.0
1618
*/

engine/src/main/java/org/hibernate/validator/cfg/defs/CreditCardNumberDef.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import org.hibernate.validator.constraints.CreditCardNumber;
1212

1313
/**
14+
* A {@link CreditCardNumber} constraint definition.
15+
*
1416
* @author Hardy Ferentschik
1517
*/
1618
public class CreditCardNumberDef extends ConstraintDef<CreditCardNumberDef, CreditCardNumber> {

engine/src/main/java/org/hibernate/validator/cfg/defs/CurrencyDef.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
import org.hibernate.validator.constraints.Currency;
1111

1212
/**
13+
* A {@link Currency} constraint definition.
14+
*
1315
* @author Gunnar Morling
1416
*/
1517
public class CurrencyDef extends ConstraintDef<CurrencyDef, Currency> {

engine/src/main/java/org/hibernate/validator/cfg/defs/DecimalMaxDef.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import org.hibernate.validator.cfg.ConstraintDef;
1313

1414
/**
15+
* A {@link DecimalMax} constraint definition.
1516
* @author Hardy Ferentschik
1617
*/
1718
public class DecimalMaxDef extends ConstraintDef<DecimalMaxDef, DecimalMax> {

0 commit comments

Comments
 (0)