On Sun, 15 Mar 2026 21:26:00 GMT, Michael Strauß <[email protected]> wrote:
>> modules/javafx.graphics/src/main/java/com/sun/javafx/css/media/MediaFeatures.java
>> line 45:
>>
>>> 43:
>>> 44: // Extension point for unit tests to add media features
>>> 45: public static BiFunction<String, Token, MediaQuery> DEFAULT =
>>> (featureName, _) -> {
>>
>> So if I understand correctly, this is only needed for Unit tests? Is there
>> any other way we can test this without having a `public static` variable?
>
> 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?
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/2031#discussion_r2940254136