Skip to content

Commit

Permalink
Adapt to breaking API change in Spring Data Commons
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed Jun 9, 2017
1 parent f5da19f commit 1086851
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2015 the original author or authors.
* Copyright 2012-2017 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.
Expand Down Expand Up @@ -33,6 +33,7 @@
import org.springframework.data.repository.config.AnnotationRepositoryConfigurationSource;
import org.springframework.data.repository.config.RepositoryConfigurationDelegate;
import org.springframework.data.repository.config.RepositoryConfigurationExtension;
import org.springframework.data.util.Streamable;

/**
* Base {@link ImportBeanDefinitionRegistrar} used to auto-configure Spring Data
Expand Down Expand Up @@ -66,15 +67,15 @@ private AnnotationRepositoryConfigurationSource getConfigurationSource() {
return new AnnotationRepositoryConfigurationSource(metadata, getAnnotation(),
this.resourceLoader, this.environment) {
@Override
public java.lang.Iterable<String> getBasePackages() {
public Streamable<String> getBasePackages() {
return AbstractRepositoryConfigurationSourceSupport.this
.getBasePackages();
}
};
}

protected Iterable<String> getBasePackages() {
return AutoConfigurationPackages.get(this.beanFactory);
protected Streamable<String> getBasePackages() {
return Streamable.of(AutoConfigurationPackages.get(this.beanFactory));
}

/**
Expand Down

0 comments on commit 1086851

Please sign in to comment.