Github user HeartSaVioR commented on a diff in the pull request:
https://github.com/apache/storm/pull/1949#discussion_r104633614
--- Diff: storm-core/test/jvm/org/apache/storm/LocalStateTest.java ---
@@ -0,0 +1,54 @@
+package org.apache.storm;
+
+import org.apache.storm.generated.GlobalStreamId;
+import org.apache.storm.testing.TmpPath;
+import org.apache.storm.utils.LocalState;
+import org.junit.Assert;
+import org.junit.Test;
+
+import java.io.IOException;
+
+public class LocalStateTest {
+
+ @Test
+ public void testLocalState() throws IOException{
+ TmpPath dir1_tmp = new TmpPath();
--- End diff --
Let's use try-with-resource to make it compatible with `with-open` in
Clojure. It should cover dir1_tmp and dir2_tmp.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---