Updated afterPropertiesSet checks to verify that fragmentRooteElementNames is not empty BATCH-2352

This commit is contained in:
Michael Minella
2015-03-06 13:01:34 -06:00
parent 8b32462072
commit 4c72e0407f

View File

@@ -128,10 +128,9 @@ ResourceAwareItemReaderItemStream<T>, InitializingBean {
@Override
public void afterPropertiesSet() throws Exception {
Assert.notNull(unmarshaller, "The Unmarshaller must not be null.");
Assert.notNull(fragmentRootElementNames, "The FragmentRootElementNames must not be null");
Assert.notNull(fragmentRootElementNames, "The FragmentRootElementNames must not be empty");
Assert.notEmpty(fragmentRootElementNames, "The FragmentRootElementNames must not be empty");
for (QName fragmentRootElementName : fragmentRootElementNames) {
Assert.hasText(fragmentRootElementName.getLocalPart(), "The FragmentRootElementNames must contain empty elements");
Assert.hasText(fragmentRootElementName.getLocalPart(), "The FragmentRootElementNames must not contain empty elements");
}
}