google / google-java-format

Reformats Java source code to comply with Google Java Style.
Other
5.49k stars 848 forks source link

Omit the redundant method isReal() to make it simpler #1080

Open tosukriti opened 4 months ago

tosukriti commented 4 months ago

Omit the redundant method isReal() to make it simpler since we can directly compare the enum instance with ==

https://github.com/google/google-java-format/blob/18f835849551f81d60d582300a0a3c585b5774b4/core/src/main/java/com/google/googlejavaformat/Doc.java#L394