File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
spring-core/src/test/java/org/springframework/core Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,12 @@ void findBridgedMethodInHierarchy() throws Exception {
7474 assertThat (bridgedMethod .isBridge ()).isFalse ();
7575 assertThat (bridgedMethod .getName ()).isEqualTo ("add" );
7676 assertThat (bridgedMethod .getParameterCount ()).isEqualTo (1 );
77- assertThat (bridgedMethod .getParameterTypes ()[0 ]).isEqualTo (Date .class );
77+ if (IdeUtils .runningInEclipse ()) {
78+ assertThat (bridgedMethod .getParameterTypes ()).containsOnly (Serializable .class );
79+ }
80+ else {
81+ assertThat (bridgedMethod .getParameterTypes ()).containsOnly (Date .class );
82+ }
7883 }
7984
8085 @ Test
@@ -490,10 +495,12 @@ interface InterfaceMethods<T> {
490495
491496 interface DefaultMethods extends InterfaceMethods <Integer > {
492497
498+ @ Override
493499 default Integer getValue () {
494500 return 0 ;
495501 }
496502
503+ @ Override
497504 default Integer [] getValues () {
498505 return new Integer [0 ];
499506 }
You can’t perform that action at this time.
0 commit comments