On Wed, 12 Jul 2023 08:33:30 GMT, Andrey Turbanov <[email protected]> wrote:
> Found many typos in java.desktop by IDEA's inspection `Proofreading | Typo`
src/java.desktop/share/classes/javax/swing/JLayeredPane.java line 532:
> 530: if(curLayer == layer) {
> 531: layerCount++;
> 532: /// Short circuit the counting when we have them all
When used as a verb, it's usually spelt with the hyphen — *short-circuit* — as
written here, see [“short-circuit” on Merriam
Webster](https://www.merriam-webster.com/dictionary/short-circuit),
[“short-circuit” on Collin's
Dictionary](https://www.collinsdictionary.com/dictionary/english/short-circuit).
The [“short-circuit” entry on
Wiktionary](https://en.wiktionary.org/wiki/short_circuit#Verb) lists the
spelling without the hyphen, however, in notes it is mentioned, <q
cite="https://en.wiktionary.org/wiki/short_circuit#Usage_notes">Senses 3 and 4
usually use the hyphenated spelling **short-circuit**.</q> I think the word is
used in the sense 3.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14847#discussion_r1309316216