Avoid creating message arguments to Assert.isABC calls

See 67f184293b
This commit is contained in:
Vladimir Sitnikov
2018-02-13 14:04:49 +03:00
committed by Juergen Hoeller
parent b449928691
commit 659f13be1c
8 changed files with 10 additions and 9 deletions

View File

@@ -580,7 +580,7 @@ public class Jaxb2Marshaller implements MimeMarshaller, MimeUnmarshaller, Generi
xmlReader.setFeature("http://xml.org/sax/features/namespace-prefixes", true);
for (int i = 0; i < resources.length; i++) {
Assert.notNull(resources[i], "Resource is null");
Assert.isTrue(resources[i].exists(), "Resource " + resources[i] + " does not exist");
Assert.isTrue(resources[i].exists(), () -> "Resource " + resources[i] + " does not exist");
InputSource inputSource = SaxResourceUtils.createInputSource(resources[i]);
schemaSources[i] = new SAXSource(xmlReader, inputSource);
}