@@ -71,7 +71,8 @@ void synthesizeWhenInterfaceOverridingAnnotationOnInterfaceThenResolves() throws
71
71
72
72
@ Test
73
73
void synthesizeWhenInterfaceOverridingMultipleInterfaceInheritanceThenResolves () throws Exception {
74
- Method method = ClassInheritingInterfaceOverridingMultipleInterfaceInheritance .class .getDeclaredMethod ("method" );
74
+ Method method = ClassInheritingInterfaceOverridingMultipleInterfaceInheritance .class
75
+ .getDeclaredMethod ("method" );
75
76
PreAuthorize preAuthorize = this .synthesizer .synthesize (method );
76
77
assertThat (preAuthorize .value ()).isEqualTo ("ten" );
77
78
}
@@ -198,10 +199,10 @@ void synthesizeWhenMultipleMethodInheritanceThenException() throws Exception {
198
199
199
200
// gh-13234
200
201
@ Test
201
- void synthesizeWhenClassInheritingGrandparentInterfaceAnnotationThenResolves () throws Exception {
202
- Method method = ClassInheritingGrandparentInterfaceAnnotation .class .getDeclaredMethod ("method" );
202
+ void synthesizeWhenClassInheritingInterfaceAnnotationThenResolves () throws Exception {
203
+ Method method = ClassInheritingInterfaceMethodAnnotation .class .getDeclaredMethod ("method" );
203
204
PreAuthorize preAuthorize = this .synthesizer .synthesize (method );
204
- assertThat (preAuthorize .value ()).isEqualTo ("one " );
205
+ assertThat (preAuthorize .value ()).isEqualTo ("three " );
205
206
}
206
207
207
208
@ Test
@@ -312,10 +313,12 @@ private interface InterfaceOverridingMultipleInterfaceInheritance
312
313
313
314
private static class ClassInheritingInterfaceOverridingMultipleInterfaceInheritance
314
315
implements InterfaceOverridingMultipleInterfaceInheritance {
316
+
315
317
@ Override
316
318
public String method () {
317
319
return "ok" ;
318
320
}
321
+
319
322
}
320
323
321
324
private interface InterfaceMethodOverridingMultipleInterfaceInheritance
@@ -498,8 +501,7 @@ private interface InterfaceInheritingInterfaceAnnotation extends AnnotationOnInt
498
501
499
502
}
500
503
501
- private static class ClassInheritingGrandparentInterfaceAnnotation
502
- implements InterfaceInheritingInterfaceAnnotation {
504
+ private static class ClassInheritingInterfaceMethodAnnotation implements AnnotationOnInterfaceMethod {
503
505
504
506
@ Override
505
507
public String method () {
0 commit comments