Fix and improve Javadoc in spring-core
See gh-28802
This commit is contained in:
@@ -417,7 +417,7 @@ class AnnotationUtilsTests {
|
||||
// inherited class-level annotation; note: @Transactional is inherited
|
||||
assertThat(isAnnotationInherited(Transactional.class, InheritedAnnotationInterface.class)).isFalse();
|
||||
// isAnnotationInherited() does not currently traverse interface hierarchies.
|
||||
// Thus the following, though perhaps counter intuitive, must be false:
|
||||
// Thus the following, though perhaps counterintuitive, must be false:
|
||||
assertThat(isAnnotationInherited(Transactional.class, SubInheritedAnnotationInterface.class)).isFalse();
|
||||
assertThat(isAnnotationInherited(Transactional.class, InheritedAnnotationClass.class)).isFalse();
|
||||
assertThat(isAnnotationInherited(Transactional.class, SubInheritedAnnotationClass.class)).isTrue();
|
||||
|
||||
@@ -1157,7 +1157,7 @@ class MergedAnnotationsTests {
|
||||
SearchStrategy.INHERITED_ANNOTATIONS).get(
|
||||
Transactional.class).getAggregateIndex()).isEqualTo(0);
|
||||
// Since we're not traversing interface hierarchies the following,
|
||||
// though perhaps counter intuitive, must be false:
|
||||
// though perhaps counterintuitive, must be false:
|
||||
assertThat(MergedAnnotations.from(SubInheritedAnnotationInterface.class,
|
||||
SearchStrategy.INHERITED_ANNOTATIONS).get(
|
||||
Transactional.class).getAggregateIndex()).isEqualTo(-1);
|
||||
|
||||
@@ -59,7 +59,7 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
* Unit tests for {@link DefaultConversionService}.
|
||||
*
|
||||
* <p>In this package for enforcing accessibility checks to non-public classes outside
|
||||
* of the {@code org.springframework.core.convert.support} implementation package.
|
||||
* the {@code org.springframework.core.convert.support} implementation package.
|
||||
* Only in such a scenario, {@code setAccessible(true)} is actually necessary.
|
||||
*
|
||||
* @author Keith Donald
|
||||
|
||||
@@ -645,7 +645,7 @@ class AssertTests {
|
||||
void isAssignableWithNullSupertype() {
|
||||
assertThatIllegalArgumentException().isThrownBy(() ->
|
||||
Assert.isAssignable(null, Integer.class, "enigma"))
|
||||
.withMessageContaining("Super type to check against must not be null");
|
||||
.withMessageContaining("Supertype to check against must not be null");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -692,7 +692,7 @@ class AssertTests {
|
||||
void isAssignableWithNullSupertypeAndMessageSupplier() {
|
||||
assertThatIllegalArgumentException().isThrownBy(() ->
|
||||
Assert.isAssignable(null, Integer.class, () -> "enigma"))
|
||||
.withMessageContaining("Super type to check against must not be null");
|
||||
.withMessageContaining("Supertype to check against must not be null");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user