Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1031778 // test_unwrapSynchronizedMap

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5043L/31K).

svoid test_unwrapSynchronizedMap() {
  new Map map;
  assertSameVerbose(map, unwrapSynchronizedMap(Collections.synchronizedMap(map)));
  assertSameVerbose(map, unwrapSynchronizedMap(map));
  assertSameVerbose(map, unwrapSynchronizedMap(new SynchronizedMap(map)));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031778
Snippet name: test_unwrapSynchronizedMap
Eternal ID of this version: #1031778/2
Text MD5: 71175d3f43dc1da6bf823ce06a6c8a01
Transpilation MD5: b5ff87253ee66c843cb67243377f6d1a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-29 18:00:45
Source code size: 270 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 64 / 113
Version history: 1 change(s)
Referenced in: [show references]