Browse Source

Merge pull request #8355 in DESIGN/design from release/11.0 to feature/x

* commit '972b6b85ee2542431731e8567dee3db2a44d08ba':
  REPORT-65854 资源释放没有在finally 代码段中进行
feature/x
superman 2 years ago
parent
commit
867a478218
  1. 4
      designer-base/src/main/java/com/fr/design/RestartHelper.java

4
designer-base/src/main/java/com/fr/design/RestartHelper.java

@ -57,10 +57,8 @@ public class RestartHelper {
properties.setProperty((i + size) + "", files[i]);
}
}
try {
FileOutputStream file2DeleteOutputStream = new FileOutputStream(file);
try (FileOutputStream file2DeleteOutputStream = new FileOutputStream(file)) {
properties.store(file2DeleteOutputStream, "save");
file2DeleteOutputStream.close();
} catch (IOException e) {
FineLoggerFactory.getLogger().error(e.getMessage(), e);
}

Loading…
Cancel
Save