From 42d09a7fd56a76a5e5d8e93ba763735b0bae87f1 Mon Sep 17 00:00:00 2001
From: Jerome Louvel <374450+jlouvel@users.noreply.github.com>
Date: Mon, 28 Oct 2024 00:23:28 -0400
Subject: [PATCH] Deprecated extensions for future removal
Deprecated GAE, GWT, OSGi and RDF extensions for removal in next major release.
---
changes.md | 1 +
.../src/main/java/org/restlet/ext/gae/GaeAuthenticator.java | 2 ++
.../src/main/java/org/restlet/ext/gae/GaeEnroler.java | 2 ++
.../src/main/java/org/restlet/ext/gae/package.html | 1 +
.../src/main/java/org/restlet/ext/gwt/GwtConverter.java | 2 ++
.../main/java/org/restlet/ext/gwt/ObjectRepresentation.java | 2 ++
.../java/org/restlet/ext/gwt/SimpleSerializationPolicy.java | 2 ++
.../org/restlet/ext/gwt/SimpleSerializationPolicyProvider.java | 2 ++
.../src/main/java/org/restlet/ext/gwt/package.html | 3 ++-
.../main/java/org/restlet/ext/osgi/ApplicationProvider.java | 2 ++
.../java/org/restlet/ext/osgi/BaseApplicationProvider.java | 3 ++-
.../main/java/org/restlet/ext/osgi/BaseDirectoryProvider.java | 3 ++-
.../src/main/java/org/restlet/ext/osgi/BaseFilterProvider.java | 3 ++-
.../main/java/org/restlet/ext/osgi/BaseResourceProvider.java | 3 ++-
.../main/java/org/restlet/ext/osgi/BaseRestletProvider.java | 3 ++-
.../src/main/java/org/restlet/ext/osgi/BaseRouterProvider.java | 3 ++-
.../src/main/java/org/restlet/ext/osgi/DirectoryProvider.java | 2 ++
.../src/main/java/org/restlet/ext/osgi/DynamicFinder.java | 2 ++
.../src/main/java/org/restlet/ext/osgi/FilterProvider.java | 2 ++
.../src/main/java/org/restlet/ext/osgi/ObapClientHelper.java | 2 ++
.../src/main/java/org/restlet/ext/osgi/ResourceProvider.java | 2 ++
.../src/main/java/org/restlet/ext/osgi/RestletProvider.java | 2 ++
.../src/main/java/org/restlet/ext/osgi/RouterProvider.java | 3 ++-
.../src/main/java/org/restlet/ext/osgi/internal/Activator.java | 2 ++
.../src/main/java/org/restlet/ext/osgi/package.html | 1 +
.../src/main/java/org/restlet/ext/rdf/Couple.java | 2 ++
.../src/main/java/org/restlet/ext/rdf/Graph.java | 2 ++
.../src/main/java/org/restlet/ext/rdf/GraphBuilder.java | 2 ++
.../src/main/java/org/restlet/ext/rdf/GraphHandler.java | 2 ++
.../src/main/java/org/restlet/ext/rdf/Link.java | 2 ++
.../src/main/java/org/restlet/ext/rdf/Literal.java | 2 ++
.../src/main/java/org/restlet/ext/rdf/RdfClientResource.java | 2 ++
.../src/main/java/org/restlet/ext/rdf/RdfConverter.java | 2 ++
.../src/main/java/org/restlet/ext/rdf/RdfRepresentation.java | 2 ++
.../src/main/java/org/restlet/ext/rdf/Triple.java | 2 ++
.../main/java/org/restlet/ext/rdf/internal/RdfConstants.java | 2 ++
.../src/main/java/org/restlet/ext/rdf/internal/RdfReader.java | 2 ++
.../java/org/restlet/ext/rdf/internal/n3/FormulaToken.java | 2 ++
.../main/java/org/restlet/ext/rdf/internal/n3/RdfN3Reader.java | 2 ++
.../main/java/org/restlet/ext/rdf/internal/n3/RdfN3Writer.java | 2 ++
.../restlet/ext/rdf/internal/ntriples/RdfNTriplesReader.java | 2 ++
.../restlet/ext/rdf/internal/ntriples/RdfNTriplesWriter.java | 2 ++
.../org/restlet/ext/rdf/internal/turtle/BlankNodeToken.java | 2 ++
.../main/java/org/restlet/ext/rdf/internal/turtle/Context.java | 2 ++
.../java/org/restlet/ext/rdf/internal/turtle/LexicalUnit.java | 2 ++
.../java/org/restlet/ext/rdf/internal/turtle/ListToken.java | 2 ++
.../org/restlet/ext/rdf/internal/turtle/RdfTurtleReader.java | 2 ++
.../org/restlet/ext/rdf/internal/turtle/RdfTurtleWriter.java | 2 ++
.../java/org/restlet/ext/rdf/internal/turtle/StringToken.java | 2 ++
.../main/java/org/restlet/ext/rdf/internal/turtle/Token.java | 2 ++
.../java/org/restlet/ext/rdf/internal/turtle/UriToken.java | 2 ++
.../java/org/restlet/ext/rdf/internal/xml/ContentReader.java | 2 ++
.../java/org/restlet/ext/rdf/internal/xml/RdfXmlReader.java | 2 ++
.../java/org/restlet/ext/rdf/internal/xml/RdfXmlWriter.java | 2 ++
.../java/org/restlet/ext/rdf/internal/xml/ScopedProperty.java | 2 ++
.../src/main/java/org/restlet/ext/rdf/package.html | 1 +
pom.xml | 2 +-
57 files changed, 109 insertions(+), 9 deletions(-)
diff --git a/changes.md b/changes.md
index 4c1c3e4202..a4ac307a8e 100644
--- a/changes.md
+++ b/changes.md
@@ -20,6 +20,7 @@ Changes log
- Removed incubator to rely instead on pull requests.
- Renamed extension Inject into Guice as it isn't truly generic.
- Updated the links in all Javadocs file for accuracy.
+ - Deprecated GAE, GWT, OSGi and RDF extensions for removal in next major release.
- 2.5 Milestone 1 (03/09/2020)
- Bugs fixed
diff --git a/org.restlet.java/org.restlet.ext.gae/src/main/java/org/restlet/ext/gae/GaeAuthenticator.java b/org.restlet.java/org.restlet.ext.gae/src/main/java/org/restlet/ext/gae/GaeAuthenticator.java
index 36baf2ebaf..251b3215b8 100644
--- a/org.restlet.java/org.restlet.ext.gae/src/main/java/org/restlet/ext/gae/GaeAuthenticator.java
+++ b/org.restlet.java/org.restlet.ext.gae/src/main/java/org/restlet/ext/gae/GaeAuthenticator.java
@@ -25,7 +25,9 @@
* UserService.
*
* @author Matt Kennedy
+ * @deprecated Will be removed in next major release.
*/
+@Deprecated
public class GaeAuthenticator extends Authenticator {
/**
* The GAE UserService that provides facilities to check whether a user has
diff --git a/org.restlet.java/org.restlet.ext.gae/src/main/java/org/restlet/ext/gae/GaeEnroler.java b/org.restlet.java/org.restlet.ext.gae/src/main/java/org/restlet/ext/gae/GaeEnroler.java
index 510fec4f51..636181083f 100644
--- a/org.restlet.java/org.restlet.ext.gae/src/main/java/org/restlet/ext/gae/GaeEnroler.java
+++ b/org.restlet.java/org.restlet.ext.gae/src/main/java/org/restlet/ext/gae/GaeEnroler.java
@@ -21,7 +21,9 @@
* {@link ClientInfo} if the GAE API reports that the user is an administrator.
*
* @author Matt Kennedy
+ * @deprecated Will be removed in next major release.
*/
+@Deprecated
public class GaeEnroler implements Enroler {
/** The Administrator role. */
diff --git a/org.restlet.java/org.restlet.ext.gae/src/main/java/org/restlet/ext/gae/package.html b/org.restlet.java/org.restlet.ext.gae/src/main/java/org/restlet/ext/gae/package.html
index 0b82f1b866..3c0f510708 100644
--- a/org.restlet.java/org.restlet.ext.gae/src/main/java/org/restlet/ext/gae/package.html
+++ b/org.restlet.java/org.restlet.ext.gae/src/main/java/org/restlet/ext/gae/package.html
@@ -5,5 +5,6 @@
@since Restlet 2.1
@see Google App Engine
@see User Guide - GAE extension
+@deprecated Will be removed in next major release.