Am 2018-08-06 um 19:31 schrieb Gary Gregory:
Hi All:

All constants in the HttpStatus class are prefixed with HC_.

Why bother?

IMO this:

if (code == HttpStatus.OK) {
}

reads better than:

if (code == HttpStatus.SC_OK) {
}

I don't have to think about what "SC" means, I already know that I am
talking about a HttpStatus.

+1

My general rule of thumb is if everything has the same prefix then the prefix is obsolete.

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to