Skip to content

Commit

Permalink
Migrate from javax.inject/annotation to jakarta.inject/annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesWell authored and Michael5601 committed Feb 12, 2024
1 parent f98dfdd commit be3b0be
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
Expand Up @@ -7,7 +7,7 @@ Bundle-Version: 0.17.300.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-17
Require-Capability: osgi.extender;
filter:="(&(osgi.extender=osgi.component)(version>=1.3)(!(version>=2.0)))"
Import-Package: javax.annotation;version="[1.3.0,2.0.0)",
Import-Package: jakarta.annotation;version="[2.1.0,3.0.0)",
org.eclipse.core.runtime.preferences;version="3.3.0",
org.eclipse.e4.core.contexts;version="1.6.0",
org.eclipse.e4.core.di,
Expand Down
Expand Up @@ -16,6 +16,7 @@
*******************************************************************************/
package org.eclipse.e4.core.di.internal.extensions;

import jakarta.annotation.PreDestroy;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.Collection;
Expand All @@ -26,7 +27,6 @@
import java.util.Map;
import java.util.Map.Entry;
import java.util.Objects;
import javax.annotation.PreDestroy;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.core.di.IInjector;
import org.eclipse.e4.core.di.InjectionException;
Expand Down
2 changes: 1 addition & 1 deletion ua/org.eclipse.tips.ide/META-INF/MANIFEST.MF
Expand Up @@ -12,7 +12,7 @@ Require-Bundle: org.eclipse.ui;bundle-version="3.0.0",
org.eclipse.tips.core;bundle-version="0.1.0",
org.eclipse.tips.ui;bundle-version="0.1.0",
org.eclipse.tips.json
Import-Package: javax.annotation;version="[1.3.0,2.0.0)",
Import-Package: jakarta.annotation;version="[2.1.0,3.0.0)",
org.osgi.service.event;version="[1.4.0,2.0.0)"
Export-Package: org.eclipse.tips.ide.internal;x-internal:=true
Bundle-Vendor: %Bundle-Vendor
Expand Down
@@ -1,12 +1,12 @@
package org.eclipse.tips.ide.internal;

import javax.annotation.PostConstruct;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.tips.ui.internal.TipComposite;

import jakarta.annotation.PostConstruct;

public class TipPart {

@PostConstruct
Expand Down
4 changes: 2 additions & 2 deletions ua/org.eclipse.ui.intro/META-INF/MANIFEST.MF
Expand Up @@ -27,8 +27,8 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
org.eclipse.e4.ui.workbench,
org.eclipse.e4.ui.model.workbench
Bundle-RequiredExecutionEnvironment: JavaSE-17
Import-Package: javax.annotation;version="[1.3.0,2.0.0)",
javax.inject;version="[1.0.0,2.0.0)",
Import-Package: jakarta.annotation;version="[2.1.0,3.0.0)",
jakarta.inject;version="[2.0.0,3.0.0)",
javax.xml.parsers,
javax.xml.transform,
javax.xml.transform.dom,
Expand Down
Expand Up @@ -16,9 +16,9 @@
import java.util.List;
import java.util.Map;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.inject.Inject;
import jakarta.annotation.PostConstruct;
import jakarta.annotation.PreDestroy;
import jakarta.inject.Inject;

import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.ui.model.application.MApplication;
Expand Down

0 comments on commit be3b0be

Please sign in to comment.