Skip to content

Commit

Permalink
fix AnnotationEntityViewConfigurationSource to use the correct Assert…
Browse files Browse the repository at this point in the history
….notNull in Spring 6.1
  • Loading branch information
fk-currenxie authored and beikov committed Dec 8, 2023
1 parent c6f8e2f commit 68e8457
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Changes that happened in releases
### Bug fixes

* Fix over-fetching of entity view data with dynamic fetches
* Fix Spring 6.1 compatibility

### Backwards-incompatible changes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ public class AnnotationEntityViewConfigurationSource extends AbstractEntityViewC
public AnnotationEntityViewConfigurationSource(AnnotationMetadata metadata, Class<? extends Annotation> annotation,
ResourceLoader resourceLoader, Environment environment) {
super(environment);
Assert.notNull(metadata);
Assert.notNull(annotation);
Assert.notNull(resourceLoader);
Assert.notNull(metadata, "metadata must not be null");
Assert.notNull(annotation, "annotation must not be null");
Assert.notNull(resourceLoader, "resourceLoader must not be null");

this.attributes = new AnnotationAttributes(metadata.getAnnotationAttributes(annotation.getName()));
this.configMetadata = metadata;
Expand Down

0 comments on commit 68e8457

Please sign in to comment.