Я видел несколько кодов в slf4j, как показано ниже. Я не знаю, почему здесь нужно избегать постоянного складывания. Это нужно делать? или просто лучшая практика. какая польза от этого?
Спасибо.
/**
* Declare the version of the SLF4J API this implementation is compiled against.
* The value of this field is usually modified with each release.
*/
// to avoid constant folding by the compiler, this field must *not* be final
public static String REQUESTED_API_VERSION = "1.6"; // !final**