|
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.
|
@@ -782,7 +782,7 @@ public static class GenericBroadcasterImpl implements Broadcaster {
|
782 | 782 | }
|
783 | 783 |
|
784 | 784 |
|
785 |
| - @SuppressWarnings({ "unused", "unchecked" }) |
| 785 | + @SuppressWarnings({"unused", "unchecked"}) |
786 | 786 | public static abstract class GenericEventBroadcasterImpl<T extends Event>
|
787 | 787 | extends GenericBroadcasterImpl implements EventBroadcaster {
|
788 | 788 |
|
@@ -847,10 +847,10 @@ public static class ModifiedMessageEvent extends MessageEvent {
|
847 | 847 | }
|
848 | 848 |
|
849 | 849 |
|
850 |
| - @SuppressWarnings("unchecked") |
851 |
| - public static class MessageBroadcasterImpl extends |
852 |
| - GenericEventBroadcasterImpl<MessageEvent> |
853 |
| - implements MessageBroadcaster { |
| 850 | + @SuppressWarnings({"serial", "unchecked"}) |
| 851 | + public static class MessageBroadcasterImpl extends GenericEventBroadcasterImpl<MessageEvent> |
| 852 | + implements Serializable, // implement an unrelated interface first (SPR-16288) |
| 853 | + MessageBroadcaster { |
854 | 854 |
|
855 | 855 | public MessageBroadcasterImpl() {
|
856 | 856 | super(NewMessageEvent.class);
|
@@ -1005,8 +1005,8 @@ public void delete(Collection<T> entities) {
|
1005 | 1005 | }
|
1006 | 1006 |
|
1007 | 1007 |
|
1008 |
| - public static class HibernateRepositoryRegistry extends |
1009 |
| - SettableRepositoryRegistry<GenericHibernateRepository<?, ?>> { |
| 1008 | + public static class HibernateRepositoryRegistry |
| 1009 | + extends SettableRepositoryRegistry<GenericHibernateRepository<?, ?>> { |
1010 | 1010 |
|
1011 | 1011 | @Override
|
1012 | 1012 | public void injectInto(GenericHibernateRepository<?, ?> rep) {
|
|
0 commit comments