Skip to content

Commit

Permalink
Restore the return type of SelectionAction.getSelectedObjects()
Browse files Browse the repository at this point in the history
- The return type cannot be changed from List<Object>  to List<?>
without breaking client calling or override this protected method.

#617
  • Loading branch information
merks authored and ptziegler committed Nov 18, 2024
1 parent 3e324bc commit 119e079
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ public void dispose() {
*
* @return A List containing the currently selected objects.
*/
protected List<?> getSelectedObjects() {
@SuppressWarnings("unchecked")
protected List<Object> getSelectedObjects() {
if (!(getSelection() instanceof IStructuredSelection)) {
return Collections.emptyList();
}
Expand Down

0 comments on commit 119e079

Please sign in to comment.