-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix discouraged access warnings for own code #1206
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this plug-in itself is only for tests, I think it would be ok to define other test-plugins as friends. But if you disable discouraged access warnings there that is probably not necessary. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay, will disable it in all test bundles, and then apply only the remaining fixes in non test bundles. Since the bundles currently have very mixed preferences (or no preferences) this might require to first create preferences in all of them. Otherwise search/replace leads to such confusing results. |
||
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me it is a bit strange, to mark 'test-plugins' as x-friends. Can't you instead disbale discouraged access-warnings in the preferences of the tests, just like you did in the apt.tests?
Applies to other 'production' plugins too.