From f6b655222086a5798fcc3051b50bfef4ae1aaca6 Mon Sep 17 00:00:00 2001 From: Jan Gruteser <jan.gruteser@hhu.de> Date: Wed, 17 Jul 2024 13:35:36 +0200 Subject: [PATCH] minor fix --- .../src/tla2sany/explorer/ExploreNode.java | 4 ---- tlatools/src/tlc2/tool/fp/DiskFPSet.java | 21 +------------------ 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/tlatools/src/tla2sany/explorer/ExploreNode.java b/tlatools/src/tla2sany/explorer/ExploreNode.java index 9c9eefb7e..f3eb73463 100644 --- a/tlatools/src/tla2sany/explorer/ExploreNode.java +++ b/tlatools/src/tla2sany/explorer/ExploreNode.java @@ -28,11 +28,7 @@ public interface ExploreNode { * semNodesTable for itself and every descendant in the semantic tree * * by executing * * * -<<<<<<< Updated upstream * Integer uid = Integer.valueOf(myUID); * -======= - * Integer uid = myUID; * ->>>>>>> Stashed changes * if (semNodesTable.get(uid) != null) return; * * semNodesTable.put(uid, this); * * * diff --git a/tlatools/src/tlc2/tool/fp/DiskFPSet.java b/tlatools/src/tlc2/tool/fp/DiskFPSet.java index 04bb80313..38c48caaf 100644 --- a/tlatools/src/tlc2/tool/fp/DiskFPSet.java +++ b/tlatools/src/tlc2/tool/fp/DiskFPSet.java @@ -55,7 +55,7 @@ import util.FileUtil; // TODO-MAK Flush asynchronously and with multiple threads (Exploit SSD support // for multiple concurrent readers) @SuppressWarnings("serial") -public abstract class DiskFPSet extends FPSet implements FPSetStatistic { +public abstract class DiskFPSet extends FPSet implements FPSetStatistic, AutoCloseable { protected final static Logger LOGGER = Logger.getLogger(DiskFPSet.class.getName()); @@ -278,25 +278,6 @@ public abstract class DiskFPSet extends FPSet implements FPSetStatistic { public abstract long sizeof(); - /* (non-Javadoc) - * @see java.lang.Object#finalize() - */ - /*public final void finalize() { - /* Close any backing disk files in use by this object. */ - /* for (int i = 0; i < this.braf.length; i++) { - try { - this.braf[i].close(); - } catch (IOException e) { /* SKIP */ - /* } - } - for (int i = 0; i < this.brafPool.length; i++) { - try { - this.brafPool[i].close(); - } catch (IOException e) { /* SKIP */ - /* } - } - }*/ - /* (non-Javadoc) * @see tlc2.tool.fp.FPSet#addThread() */ -- GitLab