From e300ba9b2cf595b47c45290e86911f111d6ab530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Prante?= Date: Fri, 5 Aug 2022 14:28:55 +0200 Subject: [PATCH] fix deprecated call --- .../src/main/java/org/xbib/content/xml/json/JsonSaxAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content-xml/src/main/java/org/xbib/content/xml/json/JsonSaxAdapter.java b/content-xml/src/main/java/org/xbib/content/xml/json/JsonSaxAdapter.java index 553e183..b2e3496 100644 --- a/content-xml/src/main/java/org/xbib/content/xml/json/JsonSaxAdapter.java +++ b/content-xml/src/main/java/org/xbib/content/xml/json/JsonSaxAdapter.java @@ -177,7 +177,7 @@ public class JsonSaxAdapter { @Override public String getPublicId() { - Object sourceRef = jsonParser.getCurrentLocation().getSourceRef(); + Object sourceRef = jsonParser.getCurrentLocation().contentReference().getRawContent(); if (sourceRef != null) { return sourceRef.toString(); } else {