Commit 8e398e16 authored by Phillip Webb's avatar Phillip Webb

Fix checkstyle violations

parent eea5d154
...@@ -161,14 +161,14 @@ class BindableTests { ...@@ -161,14 +161,14 @@ class BindableTests {
} }
@Test // gh-18218 @Test // gh-18218
public void withExistingValueDoesNotForgetAnnotations() { void withExistingValueDoesNotForgetAnnotations() {
Annotation annotation = AnnotationUtils.synthesizeAnnotation(TestAnnotation.class); Annotation annotation = AnnotationUtils.synthesizeAnnotation(TestAnnotation.class);
Bindable<?> bindable = Bindable.of(String.class).withAnnotations(annotation).withExistingValue(""); Bindable<?> bindable = Bindable.of(String.class).withAnnotations(annotation).withExistingValue("");
assertThat(bindable.getAnnotations()).containsExactly(annotation); assertThat(bindable.getAnnotations()).containsExactly(annotation);
} }
@Test // gh-18218 @Test // gh-18218
public void withSuppliedValueValueDoesNotForgetAnnotations() { void withSuppliedValueValueDoesNotForgetAnnotations() {
Annotation annotation = AnnotationUtils.synthesizeAnnotation(TestAnnotation.class); Annotation annotation = AnnotationUtils.synthesizeAnnotation(TestAnnotation.class);
Bindable<?> bindable = Bindable.of(String.class).withAnnotations(annotation).withSuppliedValue(() -> ""); Bindable<?> bindable = Bindable.of(String.class).withAnnotations(annotation).withSuppliedValue(() -> "");
assertThat(bindable.getAnnotations()).containsExactly(annotation); assertThat(bindable.getAnnotations()).containsExactly(annotation);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment