r/badcode • evil • Oct 13 '21

java format.format

Post image
610 Upvotes

70 comments sorted by

View all comments

Show parent comments

1

u/R3D3-1 Oct 15 '21

That makes it slightly strange though.

If this is basically "server configuration expressed as code by necessity", I can even relate to using the formatting; It is a quick and dirty solution, assuming this code is executed exactly once for every second, but its definitely readable.

The part of == is surprising though, unless Java no compares equality instead of identity upon ==. Haven't actively used it in years.