Merge branch '3.1.x'

This commit is contained in:
Marcin Grzejszczak
2023-04-26 12:58:31 +02:00

View File

@@ -848,7 +848,7 @@ class YamlToContracts {
protected String file(String relativePath) {
URL resource = Thread.currentThread().getContextClassLoader().getResource(relativePath);
if (resource == null) {
throw new IllegalStateException("File [\"+relativePath+\"] is not present");
throw new IllegalStateException("File [" + relativePath + "] is not present");
}
try {
return String.join("\n", Files.readAllLines(Paths.get(resource.toURI())));