Skip to content

Commit 305ee76

Browse files
author
Lukas Molzberger
committed
fs close
1 parent aaa9354 commit 305ee76

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<groupId>network.aika</groupId>
66
<artifactId>aika</artifactId>
77
<packaging>jar</packaging>
8-
<version>1.4.17</version>
8+
<version>1.4.18</version>
99
<name>aika</name>
1010
<url>https://aika.network</url>
1111
<description>An Artificial Intelligence for Knowledge Acquisition</description>
@@ -84,7 +84,7 @@
8484
</includes>
8585
</configuration>
8686
</plugin>
87-
87+
<!--
8888
<plugin>
8989
<groupId>org.apache.maven.plugins</groupId>
9090
<artifactId>maven-javadoc-plugin</artifactId>
@@ -103,7 +103,7 @@
103103
</additionalOptions>
104104
</configuration>
105105
</plugin>
106-
106+
-->
107107
<plugin>
108108
<groupId>org.apache.maven.plugins</groupId>
109109
<artifactId>maven-source-plugin</artifactId>

src/main/java/network/aika/storage/FSSuspensionCallbackImpl.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ public void open(File path, String modelLabel, boolean create) throws FileNotFou
5454
dataStore = new RandomAccessFile(getFile("model"), "rw");
5555
}
5656

57+
public void close() throws IOException {
58+
dataStore.close();
59+
}
60+
5761
@Override
5862
public Integer getIdByLabel(String label) {
5963
return labels.get(label);

0 commit comments

Comments
 (0)