简体   繁体   中英

Set value in Map while debugging in IntelliJ Idea

While debugging I would like to change value in HashMap (map name: params ). There is: "charset" -> "ISO-8859-1". When I try to set value (F2) and type: "charset" -> "UTF-8" then error message is: Invalid expression : -> . When I try to open "charset" -> "ISO-8859-1" then there is:

key = "charset" 
value = "ISO-8859-1"

but set value (F2) on value = "ISO-8859-1" doesn't work, it's greyed out. When I open "value"="ISO-8859-1" then I see:

value={char[10]31444}
hash=20129143423

Is there a chance to change value in HashMap to set some different value instead of ISO-8859-1 which already is there.

打开“评估”窗口 (Alt+F8) 并输入普通代码以将新值放入地图:

params.put("charset", "UTF-8")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM