Skip to content

Commit 96ba33a

Browse files
committed
Fix typo on getOtherAnnotations()
This is an extension of #45
1 parent 8147a14 commit 96ba33a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

junit4/src/main/java/com/google/testing/junit/testparameterinjector/TestParameterValuesProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public <A extends Annotation> A getOtherAnnotation(Class<A> annotationType) {
102102
}
103103

104104
/**
105-
* Returns all the annotations with the given type on the field or parameter that was annotated
105+
* Returns all annotations with the given type on the field or parameter that was annotated
106106
* with @TestParameter.
107107
*
108108
* <p>For example, if the test code is as follows:

junit4/src/main/java/com/google/testing/junit/testparameterinjector/TestParametersValuesProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ public <A extends Annotation> A getOtherAnnotation(Class<A> annotationType) {
9191
}
9292

9393
/**
94-
* Returns the only annotation with the given type on the method or constructor that was
95-
* annotated with @TestParameter.
94+
* Returns all annotations with the given type on the method or constructor that was annotated
95+
* with @TestParameter.
9696
*
9797
* <pre>
9898
* {@literal @}Test

junit5/src/main/java/com/google/testing/junit/testparameterinjector/junit5/TestParameterValuesProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public <A extends Annotation> A getOtherAnnotation(Class<A> annotationType) {
102102
}
103103

104104
/**
105-
* Returns the only annotation with the given type on the field or parameter that was annotated
105+
* Returns all annotations with the given type on the field or parameter that was annotated
106106
* with @TestParameter.
107107
*
108108
* <p>For example, if the test code is as follows:

junit5/src/main/java/com/google/testing/junit/testparameterinjector/junit5/TestParametersValuesProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ public <A extends Annotation> A getOtherAnnotation(Class<A> annotationType) {
9191
}
9292

9393
/**
94-
* Returns the only annotation with the given type on the method or constructor that was
95-
* annotated with @TestParameter.
94+
* Returns all annotations with the given type on the method or constructor that was annotated
95+
* with @TestParameter.
9696
*
9797
* <pre>
9898
* {@literal @}Test

0 commit comments

Comments
 (0)