Skip to content

Commit dee6d69

Browse files
committed
BVAL-692 JavaDoc improvements
1 parent 2e9693b commit dee6d69

File tree

5 files changed

+11
-13
lines changed

5 files changed

+11
-13
lines changed

src/main/java/javax/validation/Configuration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ public interface Configuration<T extends Configuration<T>> {
139139
*
140140
* @param extractor value extractor implementation
141141
* @return {@code this} following the chaining method pattern.
142-
* @throws ValueExtractorDeclarationException If more than one extractor for
143-
* the same type and type use is added
142+
* @throws ValueExtractorDeclarationException if more than one extractor for
143+
* the same type and type parameter is added
144144
* @since 2.0
145145
*/
146146
T addValueExtractor(ValueExtractor<?> extractor);

src/main/java/javax/validation/ConstraintValidatorContext.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,9 @@ LeafNodeBuilderCustomizableContext inContainer(Class<?> containerClass,
350350

351351
/**
352352
* Represents refinement choices for a node which is
353-
* in an {@code Iterator} or {@code Map}.
353+
* in an iterable, e.g. array, {@code Iterable} or {@code Map}.
354354
* <p>
355-
* If the iterator is an indexed collection or a map,
355+
* If the iterable is an indexed collection or a map,
356356
* the index or the key should be set.
357357
* <p>
358358
* The node is a leaf node (i.e. no subnode can be added).
@@ -567,9 +567,9 @@ ContainerElementNodeBuilderCustomizableContext addContainerElementNode(
567567

568568
/**
569569
* Represents refinement choices for a node which is
570-
* in an {@code Iterator} or {@code Map}.
570+
* in an iterable, e.g. array, {@code Iterable} or {@code Map}.
571571
* <p>
572-
* If the iterator is an indexed collection or a map,
572+
* If the iterable is an indexed collection or a map,
573573
* the index or the key should be set.
574574
* <p>
575575
* The node is not necessarily a leaf node (i.e. subnodes can
@@ -636,7 +636,6 @@ interface NodeContextBuilder {
636636
/**
637637
* Adds a container element node to the path the {@link ConstraintViolation}
638638
* will be associated to.
639-
* Note that container element nodes are always leaf nodes.
640639
*
641640
* @param name the node name
642641
* @param containerType the type of the container
@@ -791,10 +790,9 @@ ContainerElementNodeBuilderCustomizableContext addContainerElementNode(
791790
}
792791

793792
/**
794-
* Represents refinement choices for a container element node which is
795-
* in an {@code Iterator} or {@code Map}.
793+
* Represents refinement choices for a container element node.
796794
* <p>
797-
* If the iterator is an indexed collection or a map,
795+
* If the container is an indexed collection or a map,
798796
* the index or the key should be set.
799797
* <p>
800798
* The node is not necessarily a leaf node (i.e. subnodes can

src/main/java/javax/validation/Path.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ interface Node {
130130
*
131131
* @return this node narrowed down to the given type.
132132
*
133-
* @throws ClassCastException If this node is not assignable to the type {@code T}
133+
* @throws ClassCastException if this node is not assignable to the type {@code T}
134134
* @since 1.1
135135
*/
136136
<T extends Node> T as(Class<T> nodeType);

src/main/java/javax/validation/ValidatorContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public interface ValidatorContext {
9696
*
9797
* @param extractor value extractor implementation
9898
* @return self following the chaining method pattern
99-
* @throws ValueExtractorDeclarationException If more than one extractor for
99+
* @throws ValueExtractorDeclarationException if more than one extractor for
100100
* the same type and type parameter is added
101101
* @since 2.0
102102
*/

src/main/java/javax/validation/metadata/ContainerElementTypeDescriptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
public interface ContainerElementTypeDescriptor extends ElementDescriptor, CascadableDescriptor, ContainerDescriptor {
1919

2020
/**
21-
* Returns the index of the type argument corresponding to this container element type
21+
* Returns the index of the type argument corresponding to this container element type.
2222
* @return the index of the type argument corresponding to this container element type
2323
*/
2424
Integer getTypeArgumentIndex();

0 commit comments

Comments
 (0)