On Thu, 28 Jan 2021 23:41:44 GMT, Alexey Semenyuk <asemen...@openjdk.org> wrote:
>> I would prefer to have separate messages for "headless" and "desktop >> capable". I can merge these, if you insist. > > Duplicated messages are not much help in understanding control flow. I'd > change the new message or merge conditions. Whatever you prefer. It is fine with me to have two separate messages for display and desktop, but it is better to move this check to top of function after if (GraphicsEnvironment.isHeadless()). No point to execute other code. ------------- PR: https://git.openjdk.java.net/jdk/pull/2291