Add offending type name to AbstractRepositoryMetadata verification exception message.

Closes #3091
This commit is contained in:
kgignatyev
2024-05-06 11:34:31 -07:00
committed by Mark Paluch
parent be30ca46a9
commit b8e230c4e1

View File

@@ -41,6 +41,7 @@ import org.springframework.util.Assert;
* @author Thomas Darimont
* @author Jens Schauder
* @author Mark Paluch
* @author Konstntin Ignatyev
*/
public abstract class AbstractRepositoryMetadata implements RepositoryMetadata {
@@ -56,7 +57,7 @@ public abstract class AbstractRepositoryMetadata implements RepositoryMetadata {
public AbstractRepositoryMetadata(Class<?> repositoryInterface) {
Assert.notNull(repositoryInterface, "Given type must not be null");
Assert.isTrue(repositoryInterface.isInterface(), "Given type must be an interface");
Assert.isTrue(repositoryInterface.isInterface(), "Given type ["+ repositoryInterface.getName()+"] must be an interface");
this.repositoryInterface = repositoryInterface;
this.typeInformation = TypeInformation.of(repositoryInterface);