commit | 6f99356c4b94372c2d797a360c19cfc452e67480 | [log] [tgz] |
---|---|---|
author | Konrad Windszus <kwin@apache.org> | Thu Apr 13 08:42:06 2017 +0000 |
committer | Konrad Windszus <kwin@apache.org> | Thu Apr 13 08:42:06 2017 +0000 |
tree | 06c404056d5b368838206490b3c211e57836960e | |
parent | 2808dfe268273ee9b86a8fbd620b04fdd6cce593 [diff] |
SLING-6658 adjust javadoc to mention that annotated class itself is always registered as adapter git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1791221 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/sling/models/annotations/Model.java b/src/main/java/org/apache/sling/models/annotations/Model.java index 7dafa33..072bbd1 100644 --- a/src/main/java/org/apache/sling/models/annotations/Model.java +++ b/src/main/java/org/apache/sling/models/annotations/Model.java
@@ -38,6 +38,7 @@ /** * @return List of classes to which can be adapted. If missing, the class that is annotated is used. * If classes are given, they have to be either the annotated class itself, or interfaces or super classes of the class. + * The annotated class itself is always implicitly added to the adapters and does not need to be listed explicitly here. */ public Class<?>[] adapters() default {};
diff --git a/src/main/java/org/apache/sling/models/annotations/package-info.java b/src/main/java/org/apache/sling/models/annotations/package-info.java index 1cf7e55..57d589b 100644 --- a/src/main/java/org/apache/sling/models/annotations/package-info.java +++ b/src/main/java/org/apache/sling/models/annotations/package-info.java
@@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -@Version("1.4.0") +@Version("1.4.1") package org.apache.sling.models.annotations; import aQute.bnd.annotation.Version; \ No newline at end of file