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

10
LINES

< > BotCompany Repo | #1027957 // asHashMap, looking for transpilation problem

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

Libraryless. Compilation Failed (36L/1K).

1  
!759
2  
3  
set flag debug_jreplace.
4  
5  
static <A, B> HashMap<A, B> asHashMap(Map<A, B> map) {
6  
  if (map instanceof HashMap) ret (HashMap) map;
7  
  HashMap<A, B> m = new(0);
8  
  m.putAll(map);
9  
  ret m;
10  
}

Author comment

Began life as a copy of #1015751

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027957
Snippet name: asHashMap, looking for transpilation problem
Eternal ID of this version: #1027957/4
Text MD5: a3f8115d43ae3739c6ea1be08f839231
Transpilation MD5: f24dee9e54048d0de698642d3fda712a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-20 23:31:44
Source code size: 200 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 158 / 243
Version history: 3 change(s)
Referenced in: [show references]