/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package org.apache.jackrabbit.oak.commons.annotations;

import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PACKAGE;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.CLASS;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * Elements annotated @Internal are -- although possibly exported -- intended
 * for Oak's internal use only. Such elements are not public by design and
 * likely to be removed, have their signature change, or have their access level
 * decreased in future versions without notice. @Internal elements are eligible
 * for immediate modification or removal and are not subject to any policies
 * with respect to deprecation.
 * <p>
 * Note that Oak APIs are considered internal use by default, unless the package
 * they appear in is annotated with a {@link @Version} annotation with a value
 * greater than "1.0.0".
 */
@Documented
@Retention(CLASS)
@Target({ TYPE, METHOD, CONSTRUCTOR, ANNOTATION_TYPE, PACKAGE })
public @interface Internal {
    /**
     * @return (optional) reason for being internal
     */
    String reason() default "";

    /**
     * @return (optional) first package version making this API internal
     */
    String since() default "";
}

@@ -1605,16 +1605,23 @@
  notice.
+ %7B@code
  @Intern
@@ -1622,16 +1622,17 @@
 Internal
+%7D
  element
@@ -1636,16 +1636,19 @@
 ents are
+%0A *
  eligibl
@@ -1648,19 +1648,16 @@
 eligible
-%0A *
  for imm
@@ -1713,16 +1713,19 @@
 t to any
+%0A *
  policie
@@ -1725,19 +1725,16 @@
 policies
-%0A *
  with re
@@ -1884,16 +1884,19 @@
 th a
+%0A *
  %7B@link 
 @Ver
@@ -1891,17 +1891,47 @@
  %7B@link 
-@
+org.osgi.annotation.versioning.
 Version%7D

Mark exported APIs that we don't want to expose with an @Internal annotation - Javadoc fix