On Fri, 20 Nov 2026 22:21:27 GMT, Kevin Rushforth <[email protected]> wrote:

>> tests/system/src/test/java/test/util/Util.java line 500:
>> 
>>> 498:         if (id == null) return false;
>>> 499:         String version_id = osReleaseProps.get("VERSION_ID");
>>> 500:         if (version_id == null) return false;
>> 
>> fail fast if `version_id` is not `26.04`
>
> We need to do the below replacement to elide quotes anyway. There's nothing 
> else to short-circuit after that.
> 
> One improvement I did think of is to only read the property map from 
> `os-release` once and save it in a static field. It is usually called only 
> once or twice per test class, but it would be an easy improvement.

it's a short-lived changed anyway, so this is probably good as is.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/2377#discussion_r4648384146

Reply via email to