diff --git a/spring-core/src/test/java/org/springframework/core/BridgeMethodResolverTests.java b/spring-core/src/test/java/org/springframework/core/BridgeMethodResolverTests.java index f563c0e37e91ee2f92624cc25ef6008d071ca153..a918d764f294b724c13f54a6d9c9a638936e9f6f 100644 --- a/spring-core/src/test/java/org/springframework/core/BridgeMethodResolverTests.java +++ b/spring-core/src/test/java/org/springframework/core/BridgeMethodResolverTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 the original author or authors. + * Copyright 2002-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -807,9 +807,9 @@ public class BridgeMethodResolverTests { @SuppressWarnings("unchecked") - public static class MessageBroadcasterImpl extends - GenericEventBroadcasterImpl - implements MessageBroadcaster { + public static class MessageBroadcasterImpl extends GenericEventBroadcasterImpl + implements Serializable, // implement an unrelated interface first (SPR-16288) + MessageBroadcaster { public MessageBroadcasterImpl() { super(NewMessageEvent.class); @@ -864,7 +864,7 @@ public class BridgeMethodResolverTests { @SuppressWarnings("unchecked") public static class SettableRepositoryRegistry> - implements RepositoryRegistry { + implements RepositoryRegistry { protected void injectInto(R rep) { } @@ -902,7 +902,7 @@ public class BridgeMethodResolverTests { public static class GenericHibernateRepository - implements ConvenientGenericRepository { + implements ConvenientGenericRepository { /** * @param c Mandatory. The domain class this repository is responsible for. @@ -964,8 +964,8 @@ public class BridgeMethodResolverTests { } - public static class HibernateRepositoryRegistry extends - SettableRepositoryRegistry> { + public static class HibernateRepositoryRegistry + extends SettableRepositoryRegistry> { @Override public void injectInto(GenericHibernateRepository rep) {