Skip to content

Fix: "Unlikely Argument: ControlInfo" warning in LayoutAssistant#1192

Merged
ptziegler merged 1 commit into
eclipse-windowbuilder:masterfrom
ptziegler:unlikely-argument-warning
Aug 8, 2025
Merged

Fix: "Unlikely Argument: ControlInfo" warning in LayoutAssistant#1192
ptziegler merged 1 commit into
eclipse-windowbuilder:masterfrom
ptziegler:unlikely-argument-warning

Conversation

@ptziegler
Copy link
Copy Markdown
Contributor

This warning is produced because the selection is a list of ObjectInfos is compared with an IObjectInfo. To solve this warning, adapt the generic type of the implementing classes to work with the correct type.

@ptziegler ptziegler added this to the 1.21.0 milestone Aug 7, 2025
@ptziegler ptziegler force-pushed the unlikely-argument-warning branch from 98c0479 to dceaa5e Compare August 7, 2025 19:44
This warning is produced because the selection is a list of ObjectInfos
is compared with an IObjectInfo. To solve this warning, adapt the
generic type of the implementing classes to work with the correct type.
@ptziegler ptziegler force-pushed the unlikely-argument-warning branch from dceaa5e to f87c3dc Compare August 8, 2025 15:04
@ptziegler ptziegler merged commit b21b609 into eclipse-windowbuilder:master Aug 8, 2025
8 checks passed
@ptziegler ptziegler deleted the unlikely-argument-warning branch August 8, 2025 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant