Fix checkstyle violations

This commit is contained in:
Phillip Webb 2019-09-12 15:23:32 -07:00
parent eea5d15412
commit 8e398e164c
1 changed files with 2 additions and 2 deletions

View File

@ -161,14 +161,14 @@ class BindableTests {
}
@Test // gh-18218
public void withExistingValueDoesNotForgetAnnotations() {
void withExistingValueDoesNotForgetAnnotations() {
Annotation annotation = AnnotationUtils.synthesizeAnnotation(TestAnnotation.class);
Bindable<?> bindable = Bindable.of(String.class).withAnnotations(annotation).withExistingValue("");
assertThat(bindable.getAnnotations()).containsExactly(annotation);
}
@Test // gh-18218
public void withSuppliedValueValueDoesNotForgetAnnotations() {
void withSuppliedValueValueDoesNotForgetAnnotations() {
Annotation annotation = AnnotationUtils.synthesizeAnnotation(TestAnnotation.class);
Bindable<?> bindable = Bindable.of(String.class).withAnnotations(annotation).withSuppliedValue(() -> "");
assertThat(bindable.getAnnotations()).containsExactly(annotation);