-
Notifications
You must be signed in to change notification settings - Fork 83
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 Unnecessary @SuppressWarnings("deprecation") #1564
base: master
Are you sure you want to change the base?
fix Unnecessary @SuppressWarnings("deprecation") #1564
Conversation
Suppressing "removal" will get the nasty effect that no one will see any warning until it's actually removed and be "surpised" that build broke. |
You would only see such warning if you have pde in the workspace. In that case you will get a hard compilation error if you remove the implementation. |
If it is PDE internally using deprecated PDE thing it should better be fixed than suppressed (or itself deprecated). |
4ea9a13
to
a16f999
Compare
IMO, usage of Platform.ARCH_X86 should be removed altogether now that Platform marked it for removal now rather than fixing yet another I-build failure in 2 years. |
A good alternative is to simply inline the constant to these places. |
The affected part of the code is for the Product Editor and it's ability to add arch-specific arguments. If we remove these code paths one cannot target older versions of the Eclipse-runtime with a recent development Eclipse.
I would also be in favor of this approach as it's simple doesn't add much overhead and extends the compatibility of PDE with older Eclipse releases to target. |
Test Results 279 files - 6 279 suites - 6 46m 37s ⏱️ - 3m 29s For more details on these failures, see this check. Results for commit 44528ee. ± Comparison against base commit aaaa0c0. ♻️ This comment has been updated with latest results. |
a16f999
to
44528ee
Compare
inlined ARCH_X86 |
@SuppressWarnings("deprecation") | ||
private final String[] COMBO_ARCHLABELS = new String[] { PDEUIMessages.PropertiesSection_All, Platform.ARCH_X86, | ||
private final String[] COMBO_ARCHLABELS = new String[] { PDEUIMessages.PropertiesSection_All, | ||
IArgumentsInfo.ARCH_X86, |
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.
What makes me wonder if we should add the other supported archs now here? so what about arm, longaarch and alike?
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.
Looks fine to me
No description provided.