Use Files.readString where appropriate

This commit is contained in:
Mahmoud Ben Hassine
2023-06-12 15:59:30 +02:00
parent 53f4912991
commit a63755b546

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2018-2022 the original author or authors.
* Copyright 2018-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -334,7 +334,7 @@ abstract class JsonFileItemWriterFunctionalTests {
}
private String getContent(File file) throws IOException {
return new String(Files.readAllBytes(file.toPath()), Charset.defaultCharset());
return Files.readString(file.toPath(), Charset.defaultCharset());
}
}