Skip to content

Commit

Permalink
Upgrade of slf4j-log4j12 dependency (#422)
Browse files Browse the repository at this point in the history
* Upgrade of slf4j-log4j12 dependency (to 1.7.36)

* Optimization of imports
  • Loading branch information
chenejac authored Nov 1, 2023
1 parent c23d85b commit b21c026
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
import org.apache.jena.sdb.SDB;
import org.apache.jena.shared.Lock;
import org.apache.jena.sparql.core.Quad;
import org.apache.log4j.lf5.util.StreamUtils;

public abstract class RDFServiceJena extends RDFServiceImpl implements RDFService {

Expand All @@ -61,7 +60,7 @@ public abstract class RDFServiceJena extends RDFServiceImpl implements RDFServic

protected volatile boolean rebuildGraphURICache = true;
protected volatile boolean isRebuildGraphURICacheRunning = false;
protected final List<String> graphURIs = new CopyOnWriteArrayList<String>();
protected final List<String> graphURIs = new CopyOnWriteArrayList<String>();

@Override
public abstract boolean changeSetUpdate(ChangeSet changeSet) throws RDFServiceException;
Expand Down Expand Up @@ -133,8 +132,7 @@ private void dumpOperation(Model model, ModelChange modelChange) {
byte[] changeBytes = new byte[0];
try {
modelChange.getSerializedModel().mark(Integer.MAX_VALUE);
changeBytes = StreamUtils
.getBytes(modelChange.getSerializedModel());
changeBytes = IOUtils.toByteArray(modelChange.getSerializedModel());
modelChange.getSerializedModel().reset();
} catch (IOException e) {
// leave it empty.
Expand Down
2 changes: 1 addition & 1 deletion dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.26</version>
<version>1.7.36</version>
</dependency>
<dependency>
<groupId>org.directwebremoting</groupId>
Expand Down

0 comments on commit b21c026

Please sign in to comment.