You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Julian Leichert (JIRA)" <ji...@apache.org> on 2017/09/11 14:02:00 UTC

[jira] [Created] (OFBIZ-9705) [FB] Package org.apache.ofbiz.entity.serialize

Julian Leichert created OFBIZ-9705:
--------------------------------------

             Summary: [FB] Package org.apache.ofbiz.entity.serialize
                 Key: OFBIZ-9705
                 URL: https://issues.apache.org/jira/browse/OFBIZ-9705
             Project: OFBiz
          Issue Type: Sub-task
    Affects Versions: Trunk
            Reporter: Julian Leichert
            Priority: Minor


XmlSerializer.java:134, NP_LOAD_OF_KNOWN_NULL_VALUE
- NP: Load of known null value in org.apache.ofbiz.entity.serialize.XmlSerializer.serializeSingle(Object, Document)

The variable referenced at this point is known to be null due to an earlier check against null. Although this is valid, it might be a mistake (perhaps you intended to refer to a different variable, or perhaps the earlier check to see if the variable is null should have been a check to see if it was non-null).

XmlSerializer.java:494, LI_LAZY_INIT_STATIC
- LI: Incorrect lazy initialization of static field org.apache.ofbiz.entity.serialize.XmlSerializer.simpleDateFormatter in org.apache.ofbiz.entity.serialize.XmlSerializer.getDateFormat()

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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)