Libraryless. Click here for Pure Java version (3209L/20K/71K).
!752 p { // Exploring the funny areas of Java :) new HashMap map; map.put("nope", null); assertTrue(map.containsKey("nope")); assertNull(map.get("nope")); map = (HashMap) unstructure(testStructureFunction(map)); assertTrue(map.containsKey("nope")); assertNull(map.get("nope")); print("OK"); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005602 |
Snippet name: | Test null values in HashMap, also with structure/unstructure [works] |
Eternal ID of this version: | #1005602/1 |
Text MD5: | 2ab8749c72406e90b5766266c170ca32 |
Transpilation MD5: | 90b7666091e59583c7081871e6658716 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-01 18:38:17 |
Source code size: | 339 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 479 / 563 |
Referenced in: | [show references] |