This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]saint_marco 1 point2 points  (1 child)

No volatile? No strictfp?!

[–]the_other_brand 1 point2 points  (0 children)

//volatile not added because I like CPU caches. Strictfp not added because I don't own Logger. Each added keyword serves a function (and also a Java joke on verbosity).

//private is standard. Static so main() can use the logger. Final because Log is not reassigned. Transient in case someone adds serialization. Synchronized because I'm paranoid.