diff --git a/org.eclipse.m2e.apt.tests/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.m2e.apt.tests/.settings/org.eclipse.jdt.core.prefs index c79abff38c..b62fc2dfa3 100644 --- a/org.eclipse.m2e.apt.tests/.settings/org.eclipse.jdt.core.prefs +++ b/org.eclipse.m2e.apt.tests/.settings/org.eclipse.jdt.core.prefs @@ -20,7 +20,7 @@ org.eclipse.jdt.core.compiler.problem.deadCode=warning org.eclipse.jdt.core.compiler.problem.deprecation=warning org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled -org.eclipse.jdt.core.compiler.problem.discouragedReference=warning +org.eclipse.jdt.core.compiler.problem.discouragedReference=ignore org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled org.eclipse.jdt.core.compiler.problem.enumIdentifier=error diff --git a/org.eclipse.m2e.apt.tests/src/org/eclipse/m2e/apt/tests/AbstractM2eAptProjectConfiguratorTestCase.java b/org.eclipse.m2e.apt.tests/src/org/eclipse/m2e/apt/tests/AbstractM2eAptProjectConfiguratorTestCase.java index e48090ada4..6af789e96f 100644 --- a/org.eclipse.m2e.apt.tests/src/org/eclipse/m2e/apt/tests/AbstractM2eAptProjectConfiguratorTestCase.java +++ b/org.eclipse.m2e.apt.tests/src/org/eclipse/m2e/apt/tests/AbstractM2eAptProjectConfiguratorTestCase.java @@ -53,7 +53,6 @@ import org.eclipse.m2e.tests.common.AbstractMavenProjectTestCase; import org.junit.Before; -@SuppressWarnings("restriction") abstract class AbstractM2eAptProjectConfiguratorTestCase extends AbstractMavenProjectTestCase { static final String COMPILER_OUTPUT_DIR = "target/generated-sources/annotations"; static final String PROCESSOR_OUTPUT_DIR = "target/generated-sources/apt"; diff --git a/org.eclipse.m2e.apt.tests/src/org/eclipse/m2e/apt/tests/M2eAptProjectconfiguratorTest.java b/org.eclipse.m2e.apt.tests/src/org/eclipse/m2e/apt/tests/M2eAptProjectconfiguratorTest.java index 646d919662..65c6949293 100644 --- a/org.eclipse.m2e.apt.tests/src/org/eclipse/m2e/apt/tests/M2eAptProjectconfiguratorTest.java +++ b/org.eclipse.m2e.apt.tests/src/org/eclipse/m2e/apt/tests/M2eAptProjectconfiguratorTest.java @@ -40,7 +40,6 @@ import org.eclipse.osgi.util.NLS; import org.junit.Test; -@SuppressWarnings("restriction") public class M2eAptProjectconfiguratorTest extends AbstractM2eAptProjectConfiguratorTestCase { static { diff --git a/org.eclipse.m2e.binaryproject.tests/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.m2e.binaryproject.tests/.settings/org.eclipse.jdt.core.prefs index d4540a53f9..00a1fd4d07 100644 --- a/org.eclipse.m2e.binaryproject.tests/.settings/org.eclipse.jdt.core.prefs +++ b/org.eclipse.m2e.binaryproject.tests/.settings/org.eclipse.jdt.core.prefs @@ -3,6 +3,7 @@ org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 org.eclipse.jdt.core.compiler.compliance=17 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.discouragedReference=ignore org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled org.eclipse.jdt.core.compiler.problem.enumIdentifier=error org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning diff --git a/org.eclipse.m2e.binaryproject.tests/src/org/eclipse/m2e/binaryproject/tests/BinaryProjectTest.java b/org.eclipse.m2e.binaryproject.tests/src/org/eclipse/m2e/binaryproject/tests/BinaryProjectTest.java index aaff0e9e46..817af79762 100644 --- a/org.eclipse.m2e.binaryproject.tests/src/org/eclipse/m2e/binaryproject/tests/BinaryProjectTest.java +++ b/org.eclipse.m2e.binaryproject.tests/src/org/eclipse/m2e/binaryproject/tests/BinaryProjectTest.java @@ -35,7 +35,6 @@ import org.eclipse.m2e.tests.common.ClasspathHelpers; import org.junit.Test; -@SuppressWarnings({"restriction"}) public class BinaryProjectTest extends AbstractMavenProjectTestCase { IProgressMonitor monitor = new NullProgressMonitor(); diff --git a/org.eclipse.m2e.core.ui/META-INF/MANIFEST.MF b/org.eclipse.m2e.core.ui/META-INF/MANIFEST.MF index 214f47c475..646454b7b0 100644 --- a/org.eclipse.m2e.core.ui/META-INF/MANIFEST.MF +++ b/org.eclipse.m2e.core.ui/META-INF/MANIFEST.MF @@ -6,17 +6,23 @@ Bundle-RequiredExecutionEnvironment: JavaSE-17 Bundle-Name: %Bundle-Name Bundle-Vendor: %Bundle-Vendor Bundle-Localization: plugin -Export-Package: org.eclipse.m2e.core.ui.internal;x-friends:="org.eclipse.m2e.editor", +Export-Package: org.eclipse.m2e.core.ui.internal;x-friends:="org.eclipse.m2e.editor,org.eclipse.m2e.scm", org.eclipse.m2e.core.ui.internal.actions; x-friends:="org.eclipse.m2e.editor, org.eclipse.m2e.editor.xml, org.eclipse.m2e.scm, - org.eclipse.m2e.jdt.ui", + org.eclipse.m2e.jdt.ui, + org.eclipse.m2e.tests, + org.eclipse.m2e.editor.tests", org.eclipse.m2e.core.ui.internal.archetype;x-internal:=true, org.eclipse.m2e.core.ui.internal.components;x-friends:="org.eclipse.m2e.editor,org.eclipse.m2e.editor.xml", org.eclipse.m2e.core.ui.internal.console;x-internal:=true, org.eclipse.m2e.core.ui.internal.dialogs;x-friends:="org.eclipse.m2e.editor", - org.eclipse.m2e.core.ui.internal.editing;x-friends:="org.eclipse.m2e.editor.xml,org.eclipse.m2e.editor,org.eclipse.m2e.refactoring", + org.eclipse.m2e.core.ui.internal.editing; + x-friends:="org.eclipse.m2e.editor.xml, + org.eclipse.m2e.editor, + org.eclipse.m2e.refactoring, + org.eclipse.m2e.editor.tests", org.eclipse.m2e.core.ui.internal.lifecyclemapping;x-internal:=true, org.eclipse.m2e.core.ui.internal.markers;x-friends:="org.eclipse.m2e.editor", org.eclipse.m2e.core.ui.internal.preferences;x-internal:=true, @@ -25,7 +31,11 @@ Export-Package: org.eclipse.m2e.core.ui.internal;x-friends:="org.eclipse.m2e.edi org.eclipse.m2e.core.ui.internal.util;x-friends:="org.eclipse.m2e.editor", org.eclipse.m2e.core.ui.internal.views;x-internal:=true, org.eclipse.m2e.core.ui.internal.views.nodes;x-internal:=true, - org.eclipse.m2e.core.ui.internal.wizards;x-friends:="org.eclipse.m2e.editor,org.eclipse.m2e.scm" + org.eclipse.m2e.core.ui.internal.wizards; + x-friends:="org.eclipse.m2e.editor, + org.eclipse.m2e.scm, + org.eclipse.m2e.discovery, + org.eclipse.m2e.editor.tests" Bundle-Activator: org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator Bundle-ActivationPolicy: lazy Require-Bundle: org.eclipse.m2e.core;bundle-version="[2.0.0,3.0.0)", diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/project/MavenProjectConfigurator.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/project/MavenProjectConfigurator.java index 82e998d5e5..5b440393d0 100644 --- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/project/MavenProjectConfigurator.java +++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/project/MavenProjectConfigurator.java @@ -125,7 +125,6 @@ public void addProjects(Collection projects) { * @author mistria * */ - @SuppressWarnings("restriction") public static class UpdateMavenConfigurationJob extends MavenJob implements org.eclipse.m2e.core.internal.jobs.IBackgroundProcessingQueue { diff --git a/org.eclipse.m2e.core/META-INF/MANIFEST.MF b/org.eclipse.m2e.core/META-INF/MANIFEST.MF index 66285284a6..1882d20e87 100644 --- a/org.eclipse.m2e.core/META-INF/MANIFEST.MF +++ b/org.eclipse.m2e.core/META-INF/MANIFEST.MF @@ -23,21 +23,27 @@ Export-Package: org.eclipse.m2e.core, org.eclipse.m2e.profiles.core, org.eclipse.m2e.scm, org.eclipse.m2e.sourcelookup.ui, - org.eclipse.m2e.pde.target", + org.eclipse.m2e.pde.target, + org.eclipse.m2e.sourcelookup", org.eclipse.m2e.core.internal.builder;x-internal:=true, org.eclipse.m2e.core.internal.builder.plexusbuildapi;x-internal:=true, org.eclipse.m2e.core.internal.content;x-internal:=true, - org.eclipse.m2e.core.internal.embedder;x-internal:=true, - org.eclipse.m2e.core.internal.index;x-friends:="org.eclipse.m2e.core.ui,org.eclipse.m2e.editor", + org.eclipse.m2e.core.internal.embedder;x-friends:="org.eclipse.m2e.jdt", + org.eclipse.m2e.core.internal.index;x-friends:="org.eclipse.m2e.core.ui,org.eclipse.m2e.editor,org.eclipse.m2e.jdt", org.eclipse.m2e.core.internal.index.filter;x-internal:=true, - org.eclipse.m2e.core.internal.jobs;x-internal:=true, + org.eclipse.m2e.core.internal.jobs; + x-friends:="org.eclipse.m2e.core.ui, + org.eclipse.m2e.scm, + org.eclipse.m2e.binaryproject, + org.eclipse.m2e.jdt, + org.eclipse.m2e.profiles.ui", org.eclipse.m2e.core.internal.launch;x-friends:="org.eclipse.m2e.launching", org.eclipse.m2e.core.internal.lifecyclemapping;x-friends:="org.eclipse.m2e.core.ui", org.eclipse.m2e.core.internal.lifecyclemapping.discovery;x-friends:="org.eclipse.m2e.core.ui", org.eclipse.m2e.core.internal.lifecyclemapping.model;x-internal:=true, org.eclipse.m2e.core.internal.lifecyclemapping.model.io.xpp3;x-internal:=true, org.eclipse.m2e.core.internal.markers;x-internal:=true, - org.eclipse.m2e.core.internal.preferences;x-friends:="org.eclipse.m2e.core.ui", + org.eclipse.m2e.core.internal.preferences;x-friends:="org.eclipse.m2e.core.ui,org.eclipse.m2e.jdt", org.eclipse.m2e.core.internal.project;x-friends:="org.eclipse.m2e.core.ui,org.eclipse.m2e.scm", org.eclipse.m2e.core.internal.project.conversion;x-internal:=true, org.eclipse.m2e.core.internal.project.registry;x-internal:=true, diff --git a/org.eclipse.m2e.discovery/META-INF/MANIFEST.MF b/org.eclipse.m2e.discovery/META-INF/MANIFEST.MF index 08b1b7b7f8..9e4ffb927d 100644 --- a/org.eclipse.m2e.discovery/META-INF/MANIFEST.MF +++ b/org.eclipse.m2e.discovery/META-INF/MANIFEST.MF @@ -24,7 +24,7 @@ Require-Bundle: org.eclipse.equinox.p2.ui.discovery, org.eclipse.jface.text Export-Package: org.eclipse.m2e.internal.discovery;x-internal:=true, org.eclipse.m2e.internal.discovery.handlers;x-internal:=true, - org.eclipse.m2e.internal.discovery.markers;x-internal:=true, + org.eclipse.m2e.internal.discovery.markers;x-friends:="org.eclipse.m2e.editor", org.eclipse.m2e.internal.discovery.operation;x-internal:=true, org.eclipse.m2e.internal.discovery.preferences;x-internal:=true, org.eclipse.m2e.internal.discovery.startup;x-internal:=true, diff --git a/org.eclipse.m2e.editor.tests/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.m2e.editor.tests/.settings/org.eclipse.jdt.core.prefs index d4540a53f9..00a1fd4d07 100644 --- a/org.eclipse.m2e.editor.tests/.settings/org.eclipse.jdt.core.prefs +++ b/org.eclipse.m2e.editor.tests/.settings/org.eclipse.jdt.core.prefs @@ -3,6 +3,7 @@ org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 org.eclipse.jdt.core.compiler.compliance=17 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.discouragedReference=ignore org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled org.eclipse.jdt.core.compiler.problem.enumIdentifier=error org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning diff --git a/org.eclipse.m2e.editor.tests/src/org/eclipse/m2e/editor/tests/M2EEditorTest.java b/org.eclipse.m2e.editor.tests/src/org/eclipse/m2e/editor/tests/M2EEditorTest.java index 201149b5bb..39aa66db47 100644 --- a/org.eclipse.m2e.editor.tests/src/org/eclipse/m2e/editor/tests/M2EEditorTest.java +++ b/org.eclipse.m2e.editor.tests/src/org/eclipse/m2e/editor/tests/M2EEditorTest.java @@ -45,7 +45,6 @@ import org.eclipse.ui.texteditor.ITextEditor; import org.junit.Test; -@SuppressWarnings("restriction") public class M2EEditorTest extends AbstractMavenProjectTestCase { @Test diff --git a/org.eclipse.m2e.editor/META-INF/MANIFEST.MF b/org.eclipse.m2e.editor/META-INF/MANIFEST.MF index 9fcc0eb324..dfebc00432 100644 --- a/org.eclipse.m2e.editor/META-INF/MANIFEST.MF +++ b/org.eclipse.m2e.editor/META-INF/MANIFEST.MF @@ -27,7 +27,7 @@ Bundle-RequiredExecutionEnvironment: JavaSE-17 Bundle-Vendor: %Bundle-Vendor Export-Package: org.eclipse.m2e.editor;x-friends:="org.eclipse.m2e.editor.xml", org.eclipse.m2e.editor.composites;x-friends:="org.eclipse.m2e.editor.xml", - org.eclipse.m2e.editor.dialogs;x-friends:="org.eclipse.m2e.editor.xml", + org.eclipse.m2e.editor.dialogs;x-friends:="org.eclipse.m2e.editor.xml,org.eclipse.m2e.editor.tests", org.eclipse.m2e.editor.internal.lifecycle;x-internal:=true, org.eclipse.m2e.editor.internal.markers;x-internal:=true, org.eclipse.m2e.editor.mojo;x-friends:="org.eclipse.m2e.editor.xml", diff --git a/org.eclipse.m2e.feature/feature.xml b/org.eclipse.m2e.feature/feature.xml index 9339f5c4c4..41771a8d3b 100644 --- a/org.eclipse.m2e.feature/feature.xml +++ b/org.eclipse.m2e.feature/feature.xml @@ -2,7 +2,7 @@ { private final Artifact artifact; private final List repositories; diff --git a/org.eclipse.m2e.tests.common/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.m2e.tests.common/.settings/org.eclipse.jdt.core.prefs index 552f7d6594..cac874ec7d 100644 --- a/org.eclipse.m2e.tests.common/.settings/org.eclipse.jdt.core.prefs +++ b/org.eclipse.m2e.tests.common/.settings/org.eclipse.jdt.core.prefs @@ -44,7 +44,7 @@ org.eclipse.jdt.core.compiler.problem.deadCode=warning org.eclipse.jdt.core.compiler.problem.deprecation=warning org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=enabled org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled -org.eclipse.jdt.core.compiler.problem.discouragedReference=warning +org.eclipse.jdt.core.compiler.problem.discouragedReference=ignore org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled org.eclipse.jdt.core.compiler.problem.enumIdentifier=error diff --git a/org.eclipse.m2e.tests.common/META-INF/MANIFEST.MF b/org.eclipse.m2e.tests.common/META-INF/MANIFEST.MF index 68b6e1bd1e..94e1294e35 100644 --- a/org.eclipse.m2e.tests.common/META-INF/MANIFEST.MF +++ b/org.eclipse.m2e.tests.common/META-INF/MANIFEST.MF @@ -21,7 +21,13 @@ Bundle-RequiredExecutionEnvironment: JavaSE-17 Bundle-Vendor: Eclipse.org - m2e MavenArtifact-GroupId: org.eclipse.m2e MavenArtifact-ArtifactId: org.eclipse.m2e.tests.common -Export-Package: org.eclipse.m2e.tests.common;x-friends:="org.eclipse.m2e.tests,org.eclipse.m2e.core.tests,org.eclipse.m2e.jdt.tests,org.eclipse.m2e.core.ui.tests,org.eclipse.m2e.wtp.tests" +Export-Package: org.eclipse.m2e.tests.common; + x-friends:="org.eclipse.m2e.tests, + org.eclipse.m2e.core.tests, + org.eclipse.m2e.jdt.tests, + org.eclipse.m2e.core.ui.tests, + org.eclipse.m2e.wtp.tests, + org.eclipse.m2e.editor.tests" Import-Package: javax.servlet;version="3.1.0", javax.servlet.http;version="3.1.0" Automatic-Module-Name: org.eclipse.m2e.tests.common diff --git a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractLifecycleMappingTest.java b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractLifecycleMappingTest.java index 85765c8baa..2a929e6d1d 100644 --- a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractLifecycleMappingTest.java +++ b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractLifecycleMappingTest.java @@ -49,7 +49,6 @@ import org.eclipse.m2e.core.project.configurator.MojoExecutionKey; -@SuppressWarnings("restriction") @RequireMavenExecutionContext public abstract class AbstractLifecycleMappingTest extends AbstractMavenProjectTestCase { protected IMavenProjectRegistry mavenProjectManager; diff --git a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractMavenProjectTestCase.java b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractMavenProjectTestCase.java index 4e8bce7e72..2cf4a87e6f 100644 --- a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractMavenProjectTestCase.java +++ b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractMavenProjectTestCase.java @@ -109,7 +109,6 @@ import org.eclipse.m2e.jdt.internal.BuildPathManager; -@SuppressWarnings("restriction") public abstract class AbstractMavenProjectTestCase { private static final boolean STOP_ON_FAILED_TEST = Boolean.getBoolean("m2e.stopOnFailedTest"); diff --git a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/JobHelpers.java b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/JobHelpers.java index 611e29dec5..b1866c6093 100644 --- a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/JobHelpers.java +++ b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/JobHelpers.java @@ -36,7 +36,6 @@ import org.eclipse.m2e.core.internal.jobs.IBackgroundProcessingQueue; -@SuppressWarnings("restriction") public class JobHelpers { private static final int POLLING_DELAY = 10; diff --git a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/WorkspaceHelpers.java b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/WorkspaceHelpers.java index 311684ecd2..2030788d68 100644 --- a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/WorkspaceHelpers.java +++ b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/WorkspaceHelpers.java @@ -46,7 +46,6 @@ import org.eclipse.m2e.core.project.configurator.MojoExecutionKey; -@SuppressWarnings("restriction") public class WorkspaceHelpers { public static String getModelId(MavenProject mavenProject) { return mavenProject.getGroupId() + ":" + mavenProject.getArtifactId() + ":" + mavenProject.getVersion();