:fix: constructor error messages
This commit is contained in:
committed by
Christian Tzolov
parent
9f56a91657
commit
0f07b7bb8a
@@ -92,8 +92,8 @@ public class Document implements Content {
|
||||
}
|
||||
|
||||
public Document(String id, String content, List<Media> media, Map<String, Object> metadata) {
|
||||
Assert.hasText(id, "id must not be null");
|
||||
Assert.hasText(content, "content must not be null");
|
||||
Assert.hasText(id, "id must not be null or empty");
|
||||
Assert.hasText(content, "content must not be null or empty");
|
||||
Assert.notNull(metadata, "metadata must not be null");
|
||||
|
||||
this.id = id;
|
||||
|
||||
Reference in New Issue
Block a user