android findbugs一些常见的问题

BUG描述: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.(这种方法包含了一个不同步延迟初始化的非volatile静态字段。因为编译器或处理器可能会重新排列指令,如果该方法可以被多个线程调用,,线程不能保证看到一个完全初始化的对象。)

既有美妙的风景,也会有称不上景、只有风的地方。

android findbugs一些常见的问题

相关文章:

你感兴趣的文章:

标签云: