Skip to content

Commit b7c0a24

Browse files
committed
Replace RDF FileManager with RDFDataMgr
Jena FileManager.get() is now deprecated and replaced with RDFDataManager Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
1 parent f071902 commit b7c0a24

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/spdx/spdxRdfStore/RdfStore.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
import org.apache.jena.query.ARQ;
4141
import org.apache.jena.rdf.model.Model;
4242
import org.apache.jena.rdf.model.ModelFactory;
43-
import org.apache.jena.util.FileManager;
43+
import org.apache.jena.riot.RDFDataMgr;
4444
import org.apache.jena.util.iterator.ExtendedIterator;
4545
import org.slf4j.Logger;
4646
import org.slf4j.LoggerFactory;
@@ -442,7 +442,7 @@ public IModelStoreLock enterCriticalSection(String documentUri, boolean readLock
442442
* @throws IOException
443443
*/
444444
public String loadModelFromFile(String fileNameOrUrl, boolean overwrite) throws InvalidSPDXAnalysisException, IOException {
445-
InputStream spdxRdfInput = FileManager.get().open(fileNameOrUrl);
445+
InputStream spdxRdfInput = RDFDataMgr.open(fileNameOrUrl);
446446
if (Objects.isNull(spdxRdfInput)) {
447447
throw new FileNotFoundException(fileNameOrUrl + " not found.");
448448
}

0 commit comments

Comments
 (0)