Skip to content

Commit e4e430b

Browse files
committed
Resolve some deprecated API usage warnings
1 parent cbd4895 commit e4e430b

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

src/main/java/org/nanopub/CustomTrigWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public CustomTrigWriter(Writer writer, Set<String> usedPrefixes) {
3939
}
4040

4141
public CustomTrigWriter(Set<String> usedPrefixes) {
42-
super(NullOutputStream.NULL_OUTPUT_STREAM);
42+
super(NullOutputStream.INSTANCE);
4343
this.usedPrefixes = usedPrefixes;
4444
}
4545

src/main/java/org/nanopub/extra/server/FetchIndex.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,6 @@ public RegistryInfo getLastRegistry() {
255255
return lastRegistry;
256256
}
257257

258-
public void ignoreServer(RegistryInfo r) {
259-
registries.add(r);
260-
}
261-
262258
public void prepareForTryingServer(RegistryInfo r) {
263259
registries.add(r);
264260
lastRegistry = r;

src/main/java/org/nanopub/trusty/TrustyNanopubUtils.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,22 @@
66
import java.nio.charset.Charset;
77
import java.util.List;
88

9-
import net.trustyuri.TrustyUriUtils;
10-
import net.trustyuri.rdf.RdfHasher;
11-
import net.trustyuri.rdf.RdfPreprocessor;
12-
import net.trustyuri.rdf.RdfUtils;
13-
import net.trustyuri.rdf.TransformRdfSetting;
14-
15-
import org.nanopub.Nanopub;
16-
import org.nanopub.NanopubUtils;
179
import org.eclipse.rdf4j.model.Statement;
1810
import org.eclipse.rdf4j.rio.RDFFormat;
1911
import org.eclipse.rdf4j.rio.RDFHandlerException;
2012
import org.eclipse.rdf4j.rio.RDFWriter;
2113
import org.eclipse.rdf4j.rio.Rio;
14+
import org.nanopub.Nanopub;
15+
import org.nanopub.NanopubUtils;
16+
17+
import net.trustyuri.TrustyUriUtils;
18+
import net.trustyuri.rdf.RdfHasher;
19+
import net.trustyuri.rdf.RdfPreprocessor;
20+
import net.trustyuri.rdf.TransformRdfSetting;
2221

2322
public class TrustyNanopubUtils {
2423

25-
public static RDFFormat STNP_FORMAT = new RDFFormat("Serialized Trusty Nanopub", "text/plain", Charset.forName("UTF8"), "stnp", false, true);
24+
public static RDFFormat STNP_FORMAT = new RDFFormat("Serialized Trusty Nanopub", "text/plain", Charset.forName("UTF8"), "stnp", false, true, false);
2625

2726
private TrustyNanopubUtils() {} // no instances allowed
2827

0 commit comments

Comments
 (0)