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

26
LINES

< > BotCompany Repo | #1010619 // _registerWeakMap

JavaX fragment (include)

1  
static L _registerWeakMap_preList;
2  
3  
static <A> A _registerWeakMap(A map) {
4  
  if (javax() == null) {
5  
    // We're in class init
6  
    if (_registerWeakMap_preList == null) _registerWeakMap_preList = synchroList();
7  
    _registerWeakMap_preList.add(map);
8  
    ret map;
9  
  }
10  
  
11  
  try {
12  
    call(javax(), '_registerWeakMap, map);
13  
  } catch e {
14  
    printException(e);
15  
    print("Upgrade JavaX!!");
16  
  }
17  
  ret map;
18  
}
19  
20  
static void _onLoad_registerWeakMap() {
21  
  assertNotNull(javax());
22  
  if (_registerWeakMap_preList == null) ret;
23  
  for (O o : _registerWeakMap_preList)
24  
    _registerWeakMap(o);
25  
  _registerWeakMap_preList = null;
26  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1010619
Snippet name: _registerWeakMap
Eternal ID of this version: #1010619/8
Text MD5: 55a0697b893db54c0747314912ca24fc
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-23 20:38:55
Source code size: 642 bytes / 26 lines
Pitched / IR pitched: No / No
Views / Downloads: 430 / 485
Version history: 7 change(s)
Referenced in: [show references]