diff --git a/api/src/main/java/jakarta/xml/bind/annotation/XmlAttachmentRef.java b/api/src/main/java/jakarta/xml/bind/annotation/XmlAttachmentRef.java index 8ca5b51..49cc99c 100644 --- a/api/src/main/java/jakarta/xml/bind/annotation/XmlAttachmentRef.java +++ b/api/src/main/java/jakarta/xml/bind/annotation/XmlAttachmentRef.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2021 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2023 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Distribution License v. 1.0, which is available at @@ -10,12 +10,16 @@ package jakarta.xml.bind.annotation; -import jakarta.activation.DataHandler; -import static java.lang.annotation.ElementType.*; -import java.lang.annotation.Retention; +import static java.lang.annotation.ElementType.FIELD; +import static java.lang.annotation.ElementType.METHOD; +import static java.lang.annotation.ElementType.PARAMETER; import static java.lang.annotation.RetentionPolicy.RUNTIME; + +import java.lang.annotation.Retention; import java.lang.annotation.Target; +import jakarta.activation.DataHandler; + /** * Marks a field/property that its XML form is a uri reference to mime content. * The mime content is optimally stored out-of-line as an attachment. @@ -48,7 +52,7 @@ * } * *
- * The above binding supports WS-I AP 1.0 WS-I Attachments Profile Version 1.0. + * The above binding supports WS-I AP 1.0 WS-I Attachments Profile Version 1.0. * * @author Kohsuke Kawaguchi * @since 1.6, JAXB 2.0 diff --git a/api/src/main/java/jakarta/xml/bind/attachment/AttachmentMarshaller.java b/api/src/main/java/jakarta/xml/bind/attachment/AttachmentMarshaller.java index fae7f70..c250ae9 100644 --- a/api/src/main/java/jakarta/xml/bind/attachment/AttachmentMarshaller.java +++ b/api/src/main/java/jakarta/xml/bind/attachment/AttachmentMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2021 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2023 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Distribution License v. 1.0, which is available at @@ -40,7 +40,7 @@ * @see Marshaller#setAttachmentMarshaller(AttachmentMarshaller) * * @see XML-binary Optimized Packaging - * @see WS-I Attachments Profile Version 1.0. + * @see WS-I Attachments Profile Version 1.0. */ public abstract class AttachmentMarshaller { @@ -184,7 +184,7 @@ protected AttachmentMarshaller() {} * represents the data to be attached. Must be non-null. * @return * must be a valid URI used as cid. Must satisfy Conformance Requirement R2928 from - * WS-I Attachments Profile Version 1.0. + * WS-I Attachments Profile Version 1.0. */ public abstract String addSwaRefAttachment(DataHandler data); } diff --git a/api/src/main/java/jakarta/xml/bind/attachment/AttachmentUnmarshaller.java b/api/src/main/java/jakarta/xml/bind/attachment/AttachmentUnmarshaller.java index f31622e..b29d944 100644 --- a/api/src/main/java/jakarta/xml/bind/attachment/AttachmentUnmarshaller.java +++ b/api/src/main/java/jakarta/xml/bind/attachment/AttachmentUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2021 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2023 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Distribution License v. 1.0, which is available at @@ -34,7 +34,7 @@ *