Skip to content

Commit 6ed9800

Browse files
committed
Add missing dependency and import for Javadoc references
1 parent d5e231b commit 6ed9800

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

runtime/bundles/org.eclipse.e4.core.di.extensions/META-INF/MANIFEST.MF

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ Bundle-RequiredExecutionEnvironment: JavaSE-17
99
Export-Package: org.eclipse.e4.core.di.extensions;version="0.16.0"
1010
Bundle-Localization: fragment
1111
Import-Package: jakarta.inject;version="[2.0.0,3.0.0)",
12-
javax.inject;version="[1.0.0,2.0.0)";resolution:=optional
12+
javax.inject;version="[1.0.0,2.0.0)";resolution:=optional,
13+
org.osgi.framework;version="[1.0.0,2.0.0)"
1314
Automatic-Module-Name: org.eclipse.e4.core.di.extensions

runtime/bundles/org.eclipse.e4.core.di.extensions/src/org/eclipse/e4/core/di/extensions/OSGiBundle.java

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,20 @@
1818
import java.lang.annotation.Retention;
1919
import java.lang.annotation.RetentionPolicy;
2020
import java.lang.annotation.Target;
21+
import org.osgi.framework.Bundle;
22+
import org.osgi.framework.BundleContext;
2123

2224
/**
23-
* A method or field of type {@link org.osgi.framework.BundleContext} and
24-
* annotated with {@link OSGiBundle} will be injected with the BundleContext
25-
* from the bundle containing the class if the bundle's state is
26-
* {@link org.osgi.framework.Bundle#ACTIVE}.
25+
* A method or field of type {@link BundleContext} and annotated with
26+
* {@link OSGiBundle} will be injected with the BundleContext from the bundle
27+
* containing the class if the bundle's state is {@link Bundle#ACTIVE}.
2728
* <p>
28-
* If the method or field type is of {@link org.osgi.framework.Bundle}, the
29-
* bundle containing the class will be injected even for bundles in the
30-
* {@link org.osgi.framework.Bundle#RESOLVED} state.
29+
* If the method or field type is of {@link Bundle}, the bundle containing the
30+
* class will be injected even for bundles in the {@link Bundle#RESOLVED} state.
3131
* </p>
3232
* <p>
33-
* The {@link org.osgi.framework.Bundle} injected will be the
34-
* {@link org.osgi.framework.Bundle} that supplied the class of the object
35-
* instance. For example, in:
33+
* The {@link Bundle} injected will be the {@link Bundle} that supplied the
34+
* class of the object instance. For example, in:
3635
* </p>
3736
*
3837
* <pre>
@@ -47,8 +46,7 @@
4746
* </pre>
4847
*
4948
* <code>ContextInjectionFactory.make(B.class)</code> will inject the
50-
* {@link org.osgi.framework.BundleContext} for the bundle that supplies class
51-
* B, not class A.
49+
* {@link BundleContext} for the bundle that supplies class B, not class A.
5250
*
5351
* @since 0.16
5452
*/

runtime/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/nls/Translation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*******************************************************************************/
1414
package org.eclipse.e4.core.services.nls;
1515

16+
import jakarta.inject.Inject;
1617
import java.lang.annotation.Documented;
1718
import java.lang.annotation.ElementType;
1819
import java.lang.annotation.Retention;

0 commit comments

Comments
 (0)