Skip to content

Content Tagged "lof"

Page 1 of 1

Content Tagged "lof"

Use a Java Enum with Strings

March 10, 2015Category: Software
In my project I wanted to log messages using predefined categories. Traditionally, I do it via classes (if the messages are specific to the functions provided by that class): or an interface (pretty much the same thing): These solutions are prone to errors (e.g. when performing copy-paste and…

All tags