From 44bb102a2c15aed7d53f61744314098a70bb0837 Mon Sep 17 00:00:00 2001 From: Thomas Mortagne Date: Thu, 2 Jan 2025 14:10:05 +0100 Subject: [PATCH] [Misc] Remove deprecation which does not make sense --- .../src/main/java/org/xwiki/bridge/DocumentAccessBridge.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xwiki-platform-core/xwiki-platform-bridge/src/main/java/org/xwiki/bridge/DocumentAccessBridge.java b/xwiki-platform-core/xwiki-platform-bridge/src/main/java/org/xwiki/bridge/DocumentAccessBridge.java index c17ff13da169..9dccc61782c1 100644 --- a/xwiki-platform-core/xwiki-platform-bridge/src/main/java/org/xwiki/bridge/DocumentAccessBridge.java +++ b/xwiki-platform-core/xwiki-platform-bridge/src/main/java/org/xwiki/bridge/DocumentAccessBridge.java @@ -496,7 +496,7 @@ void setProperty(DocumentReference documentReference, DocumentReference classRef * @return The content of the attachment, as an array of bytes, which is empty if the attachment does * not exist. * @throws Exception If the document cannot be accessed. - * @deprecated use {@link #getAttachmentContent(org.xwiki.model.reference.AttachmentReference)} instead + * @deprecated use {@link #getAttachmentContent(EntityReference)} instead */ @Deprecated byte[] getAttachmentContent(String documentReference, String attachmentName) throws Exception; @@ -508,9 +508,7 @@ void setProperty(DocumentReference documentReference, DocumentReference classRef * @return The content of the attachment as an input stream or null if the attachment doesn't exist * @throws Exception If the document cannot be accessed. * @since 2.2M1 - * @deprecated use {@link #getAttachmentContent(EntityReference)} instead */ - @Deprecated(since = "14.7RC1") InputStream getAttachmentContent(AttachmentReference attachmentReference) throws Exception; /**