current position:Home>How to understand this? I didn't understand it at the beginning

How to understand this? I didn't understand it at the beginning

2022-02-03 01:07:41 CSDN Q & A

public ProjectBean getCreateMap(String project, String issueType) {
ProjectBean reset = new ProjectBean();
if (project.indexOf("-") > -1) {
project = project.substring(0, project.indexOf("-"));
}

    try {        reset = issueutil.getFieldsFromCreateMeta(project, issueType);        Map<String, Object> mapNameToKey = new HashMap<String, Object>();        //  Get field         Map<String, FieldBean> map = reset.getFields();        if (map != null) {            for (String k : map.keySet()) {                FieldBean fieldBean = map.get(k);                mapNameToKey.put(fieldBean.getName(), k);            }        }        reset.setFieldsNameToKey(mapNameToKey);        issueutil.SetCommentMap(reset);    } catch (JSONException e) {        // TODO Auto-generated catch block        e.printStackTrace();    }    return reset;}



Refer to the answer 1:

Just learn to do this ? Let's take a look at those conceptual things first




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202030107401244.html

Random recommended