Go ahead.

BTW this doesn't mean I've done a "pre-review" of the specifics, I'm just saying OK to the idea. So in review it may be found that there's a reason to keep some of these as they are.


-phil.

On 2/12/26 12:49 AM, Jeremy Wood wrote:
If I open a PR to clean up CAccessibility.java: is there any interest in code reviewing it?

Just tonight I think I’ve identified three topics to explore:

A. The native method `roleKey(AccessibleRole)` looks redundant compared to `AWTAccessor.getAccessibleBundleAccessor().getKey(AccessibleRole)`. I think we can remove one. (Or at least better document when to use each.)

B. There’s an if statement: `if (“label”.equals(…`. This looks like it will break if the Locale is not English. However it (mostly) doesn’t, because…

C. The method getAccessibleRoleForLabel also appears mostly redundant compared to AccessibleJLabel#getAccessibleRole. (See 2021 commit 70bad89b012eb200ca1e76f384a6e5fb307cf26d for 8277497 ).

I could submit a PR to clean these up, but I know sometime’s it's hard to justify maintenance work without a customer-facing issue.

Any thoughts?

Regards,
 - Jeremy

Reply via email to