Skip to content

Commit be76402

Browse files
GH-5393 document why the input is read in an inner try
1 parent 9dfa544 commit be76402

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

core/repository/manager/src/main/java/org/eclipse/rdf4j/repository/manager/LocalRepositoryManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ public synchronized RepositoryConfig getRepositoryConfig(String id) {
263263
File configFile = new File(dataDir, CFG_FILE);
264264
try {
265265
Model model;
266+
// We read the input and close it so that it may be reopend by the migration process
266267
try (InputStream input = new FileInputStream(configFile)) {
267268
model = Rio.parse(input, configFile.toURI().toString(), CONFIG_FORMAT);
268269
}

0 commit comments

Comments
 (0)