scripts/addjavamessage2ignore.py
def load_dict():
    """
    Load java messages that can be ignored pickle file into a dict structure g_ok_java_messages.

    :return: none
    """
    global g_load_java_message_filename
    global g_ok_java_messages

    if os.path.isfile(g_load_java_message_filename):
            # only load dict from file if it exists.
        with open(g_load_java_message_filename,'rb') as ofile:
            g_ok_java_messages = pickle.load(ofile)
    else:   # no previous java messages to be excluded are found
        g_ok_java_messages["general"] = []
def load_dict():
    """
    Load java messages that can be ignored pickle file into a dict structure g_ok_java_messages.

    :return: none
    """
    global g_load_java_message_filename
    global g_ok_java_messages

    if os.path.isfile(g_load_java_message_filename):
            # only load dict from file if it exists.
        with open(g_load_java_message_filename,'rb') as ofile:
            g_ok_java_messages = pickle.load(ofile)
    else:   # no previous java messages to be excluded are found
        g_ok_java_messages["general"] = []
Load java messages that can be ignored pickle file into a dict structure g_ok_java_messages.

    :return: none