See gh-26145
This commit is contained in:
izeye
2021-04-16 20:21:52 +09:00
committed by Stephane Nicoll
parent fea53294e4
commit 996472b42d
3 changed files with 18 additions and 18 deletions

View File

@@ -128,7 +128,7 @@ final class ApplicationPluginAction implements PluginApplicationAction {
private String loadResource(String name) {
try (InputStreamReader reader = new InputStreamReader(getClass().getResourceAsStream(name))) {
char[] buffer = new char[4096];
int read = 0;
int read;
StringWriter writer = new StringWriter();
while ((read = reader.read(buffer)) > 0) {
writer.write(buffer, 0, read);