google / google/error-prone

Allow MXBean in IdentifierName

Open
#4,776 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
7.2k
Forks
820
Avg merge
5h 9m
Merged PRs (30d)
50

Description

Naming an interface with the suffix `MXBean` marks it as being an [MXBean](https://docs.oracle.com/en/java/javase/17/docs/api/java.management/javax/management/MXBean.html). This should be allowed by the `IdentifierName` check such that one does not have to add a suppression to every MXBean interface.

There is also an `@MXBean` annotation that can be used as an alternative for the name suffix, but MXBeans are basically always a public API (they can be accessed via the JVM management interface), so probably many users will not want to rename existing types.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.