You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2025/05/12 20:26:24 UTC
(jena) 01/11: Deprecate, not for removal
This is an automated email from the ASF dual-hosted git repository.
andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git
commit 0ecdf59bc05dc0e8b3e20df9b377844a22a230ad
Author: Andy Seaborne <an...@apache.org>
AuthorDate: Thu May 8 22:39:18 2025 +0100
Deprecate, not for removal
---
.../org/apache/jena/rdfxml/xmloutput/impl/SplitRDFXML.java | 2 +-
jena-core/src/main/java/org/apache/jena/util/SplitIRI.java | 10 ++++++----
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/jena-core/src/main/java/org/apache/jena/rdfxml/xmloutput/impl/SplitRDFXML.java b/jena-core/src/main/java/org/apache/jena/rdfxml/xmloutput/impl/SplitRDFXML.java
index e810f0bc2a..687c198d15 100644
--- a/jena-core/src/main/java/org/apache/jena/rdfxml/xmloutput/impl/SplitRDFXML.java
+++ b/jena-core/src/main/java/org/apache/jena/rdfxml/xmloutput/impl/SplitRDFXML.java
@@ -31,7 +31,7 @@ import org.apache.jena.util.SplitIRI;
*/
class SplitRDFXML {
- @SuppressWarnings("removal")
+ @SuppressWarnings("deprecation")
static int splitXML10(String uri) {
return SplitIRI.splitXML10(uri);
}
diff --git a/jena-core/src/main/java/org/apache/jena/util/SplitIRI.java b/jena-core/src/main/java/org/apache/jena/util/SplitIRI.java
index 4bc5171abd..c620914ae4 100644
--- a/jena-core/src/main/java/org/apache/jena/util/SplitIRI.java
+++ b/jena-core/src/main/java/org/apache/jena/util/SplitIRI.java
@@ -67,7 +67,8 @@ public class SplitIRI
return string.substring(0, i);
}
- /** Calculate a localname - do not escape PN_LOCAL_ESC.
+ /**
+ * Calculate a localname - do not escape PN_LOCAL_ESC.
* This is not guaranteed to be legal Turtle.
* Use with {@link #namespace}
* Return an empty string if there is no split point.
@@ -177,7 +178,8 @@ public class SplitIRI
*/
// @formatter:on
- /** Find the URI split point, return the index into the string that is the
+ /**
+ * Find the URI split point, return the index into the string that is the
* first character of a legal Turtle local name.
* <p>
* This is a pragmatic choice, not just finding the maximal point.
@@ -236,7 +238,7 @@ public class SplitIRI
int splitPoint = -1;
// Work backwards, checking for
- // ((PN_CHARS | '.' | ':' | PLX)*
+ // (PN_CHARS | '.' | ':' | PLX)*
for ( int i = uri.length()-1; i > limit; i-- ) {
char ch = uri.charAt(i);
if ( /*RiotChars.*/isPNChars_U_N(ch) || /*RiotChars.*/isPN_LOCAL_ESC(ch) || ch == ':' || ch == '-' || ch == '.' )
@@ -282,7 +284,7 @@ public class SplitIRI
* splitXML with local stricter XML 1.0 rules (only single Java characters)
* @deprecated Retained as a record of previous split handling.
*/
- @Deprecated(forRemoval = true)
+ @Deprecated
public static int splitXML10(String string) { return splitNamespaceXML10(string); }
/**