|
1 | 1 | /* |
2 | | - * Copyright 2002-2017 the original author or authors. |
| 2 | + * Copyright 2002-2018 the original author or authors. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
@@ -807,9 +807,9 @@ public static class ModifiedMessageEvent extends MessageEvent { |
807 | 807 |
|
808 | 808 |
|
809 | 809 | @SuppressWarnings("unchecked") |
810 | | - public static class MessageBroadcasterImpl extends |
811 | | - GenericEventBroadcasterImpl<MessageEvent> |
812 | | - implements MessageBroadcaster { |
| 810 | + public static class MessageBroadcasterImpl extends GenericEventBroadcasterImpl<MessageEvent> |
| 811 | + implements Serializable, // implement an unrelated interface first (SPR-16288) |
| 812 | + MessageBroadcaster { |
813 | 813 |
|
814 | 814 | public MessageBroadcasterImpl() { |
815 | 815 | super(NewMessageEvent.class); |
@@ -864,7 +864,7 @@ public interface RepositoryRegistry { |
864 | 864 |
|
865 | 865 | @SuppressWarnings("unchecked") |
866 | 866 | public static class SettableRepositoryRegistry<R extends SimpleGenericRepository<?>> |
867 | | - implements RepositoryRegistry { |
| 867 | + implements RepositoryRegistry { |
868 | 868 |
|
869 | 869 | protected void injectInto(R rep) { |
870 | 870 | } |
@@ -902,7 +902,7 @@ public interface ConvenientGenericRepository<T, ID extends Serializable> |
902 | 902 |
|
903 | 903 |
|
904 | 904 | public static class GenericHibernateRepository<T, ID extends Serializable> |
905 | | - implements ConvenientGenericRepository<T, ID> { |
| 905 | + implements ConvenientGenericRepository<T, ID> { |
906 | 906 |
|
907 | 907 | /** |
908 | 908 | * @param c Mandatory. The domain class this repository is responsible for. |
@@ -964,8 +964,8 @@ public void delete(Collection<T> entities) { |
964 | 964 | } |
965 | 965 |
|
966 | 966 |
|
967 | | - public static class HibernateRepositoryRegistry extends |
968 | | - SettableRepositoryRegistry<GenericHibernateRepository<?, ?>> { |
| 967 | + public static class HibernateRepositoryRegistry |
| 968 | + extends SettableRepositoryRegistry<GenericHibernateRepository<?, ?>> { |
969 | 969 |
|
970 | 970 | @Override |
971 | 971 | public void injectInto(GenericHibernateRepository<?, ?> rep) { |
|
0 commit comments