Transpiled version (46L) is out of date.
1 | // assumes map never contains null values |
2 | static <A, B> AutoCloseable tempMapPut(Map<A, B> map, A key, B value) { |
3 | if (map != null && key != null && value != null) { |
4 | B old = map.put(key, value); |
5 | ret -> mapPutOrRemove(map, key, old); |
6 | } |
7 | null; |
8 | } |
Began life as a copy of #1007227
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034293 |
Snippet name: | tempMapPut - put into map if key & value are not null |
Eternal ID of this version: | #1034293/2 |
Text MD5: | 488b50c69a510b6884ed13702300e91d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-01 03:22:05 |
Source code size: | 264 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 127 / 185 |
Version history: | 1 change(s) |
Referenced in: | [show references] |