You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class CanBeDeclaredAsStatic {
public void test() {
String x = "foo";
String y = toUpper(x);
String z = toLower(y);
System.err.println(z);
}
public String toUpper(String string) {
return string.toUpperCase(Locale.ROOT);
}
public String toLower(String string) {
return string.toLowerCase(Locale.ROOT);
}
}
and activated the corresponding warnings you see
When you choose one of those two warnings you get a quickfix dialog which allows you to fix the problem:
But when you choose both warnings then you get "The selected components do not have a common applicable quick fix":
I would have expected that the UI allows me to get both warnings fixed at the same time because they both have the same quick fix.
The text was updated successfully, but these errors were encountered:
In the reproducer given it is an ASTRewriteCorrectionProposal which is not an FixCorrectionProposal so it fails the instanceof FixCorrectionProposal in org.eclipse.jdt.internal.ui.text.correction.CorrectionMarkerResolutionGenerator.CorrectionMarkerResolution.findOtherMarkers(IMarker[]). One would have to refactor to use FixCorrectionProposalCore instead of ASTRewriteCorrectionProposalCore
If you have a class
and activated the corresponding warnings you see
When you choose one of those two warnings you get a quickfix dialog which allows you to fix the problem:
But when you choose both warnings then you get "The selected components do not have a common applicable quick fix":
I would have expected that the UI allows me to get both warnings fixed at the same time because they both have the same quick fix.
The text was updated successfully, but these errors were encountered: