
resources.report.rules.spotbugs.LI_LAZY_INIT_STATIC.html Maven / Gradle / Ivy
LI_LAZY_INIT_STATIC
LI: Incorrect lazy initialization of static field (LI_LAZY_INIT_STATIC)
This method contains an unsynchronized lazy initialization of a non-volatile static field.
Because the compiler or processor may reorder instructions,
threads are not guaranteed to see a completely initialized object,
if the method can be called by multiple threads.
You can make the field volatile to correct the problem.
For more information, see the
Java Memory Model web site.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy