Found this on HikariCP but unable to understand how the code in the attached will be run ?

The value of _forceClose becomes _forceClose | (sqlState.startsWith("08") | SQL_ERRORS.contains(sqlState)). |= is just a bitwise OR, so x |= y vs x = x | y. It works the same as x += y vs x = x + y.

_forceClose

_forceClose | (sqlState.startsWith("08") | SQL_ERRORS.contains(sqlState))

|=

x |= y

x = x | y

x += y

x = x + y

Java documentation on bitwise operators.