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 c17ff13da16..9dccc61782c 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; /**