/*
 * Copyright (c) OSGi Alliance (2020). All Rights Reserved.
 * 
 * Licensed under the Apache License, Export 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.osgi.annotation.bundle;

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

/**
 * Mark types as referenced.
 * <p>
 * The references must cause the packages of the specified types to be imported
 * by a bundle containing the annotated type.
 * <p>
 * This annotation is not retained at runtime. It is for use by tools to
 * generate bundle manifests.
 * 
 * @author $Id$
 */
@Documented
@Retention(RetentionPolicy.CLASS)
@Target({
		ElementType.TYPE, ElementType.PACKAGE
})
public @interface Referenced {
	/**
	 * A list of referenced classes.
	 * <p>
	 * Specifying a class in this annotation must be treated by tools as if the
	 * annotated type has a code reference to the class which will result in an
	 * import of the package of the class.
	 */
	Class< ? >[] value();
}

@@ -906,11 +906,9 @@
 %0A * 
-The
+A
  ref
@@ -917,14 +917,12 @@
 ence
-s must
+ can
  cau
@@ -939,16 +939,13 @@
 kage
-s
  of 
-the
+a
  spe
@@ -955,17 +955,16 @@
 ied type
-s
  to be i
@@ -974,31 +974,42 @@
 rted
-%0A * by a bundle
+ if the%0A * bundle does not
  contain
 ing 
@@ -1008,29 +1008,19 @@
 tain
-ing
  the 
-annotated typ
+packag
 e.%0A 
@@ -1469,12 +1469,11 @@
 ich 
-will
+may
  res
@@ -1520,16 +1520,64 @@
 he class
+ if the bundle does not contain that%0A%09 * package
 .%0A%09 */%0A%09

Improve Referenced bundle annotation javadoc text