kyooosukedn commented on code in PR #4274:
URL: https://github.com/apache/eventmesh/pull/4274#discussion_r1273695754
##########
eventmesh-common/src/test/java/org/apache/eventmesh/common/file/WatchFileManagerTest.java:
##########
@@ -50,11 +50,18 @@ public boolean support(FileChangeContext changeContext) {
};
WatchFileManager.registerFileChangeListener(f.getParent(),
fileChangeListener);
- Properties properties = new Properties();
- properties.load(new BufferedReader(new FileReader(file)));
- properties.setProperty("eventMesh.server.newAdd", "newAdd");
- FileWriter fw = new FileWriter(file);
- properties.store(fw, "newAdd");
+ try (FileReader fr = new FileReader(file);
+ BufferedReader br = new BufferedReader(fr);
+ FileWriter fw = new FileWriter(file)) {
Review Comment:
Thanks for the review :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]