On Mon, 16 Mar 2026 13:04:34 GMT, Marius Hanl <[email protected]> wrote:

>> The field could be private and the test could use reflection to access it, 
>> but this class is an implementation detail, so I'm not sure if that's an 
>> advantage.
>
> I was mostly wondering - so this field is needed also for Production code, 
> but made public for Unit Testing?

In production, it just throws an exception when the requested media feature was 
not found. For testing, this is the extension point where I can return a 
test-only media query; in our case, a media query that is always true or always 
false.

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/2031#discussion_r2942027923

Reply via email to