Skip to content

Commit

Permalink
deprecate ExtendedRegistry
Browse files Browse the repository at this point in the history
With java 8 we can use default methods on the interface.
  • Loading branch information
brharrington committed Aug 6, 2015
1 parent dd01d03 commit 5d7b04e
Show file tree
Hide file tree
Showing 18 changed files with 547 additions and 523 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ final class CompositeRegistry implements Registry {
* Find the first registry in the composite that is an instance of {@code c}. If no match is
* found then null will be returned.
*/
@SuppressWarnings("unchecked")
<T extends Registry> T find(Class<T> c) {
for (Registry r : registries) {
if (c.isAssignableFrom(r.getClass())) {
Expand Down
Loading

0 comments on commit 5d7b04e

Please sign in to comment.