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

16
LINES

< > BotCompany Repo | #1018923 // nonStaticNonPrimitiveFieldObjects

JavaX fragment (include)

1  
scope nonStaticNonPrimitiveFieldObjects.
2  
3  
static final Map<Class, L<Field>> #cache = dangerousWeakMap();
4  
5  
static L<Field> nonStaticNonPrimitiveFieldObjects(O o) {
6  
  Class c = o.getClass();
7  
  L<Field> fields;
8  
  synchronized(cache) {
9  
    fields = cache.get(c);
10  
    if (fields == null)
11  
      cache.put(c, fields = nonStaticNonPrimitiveFieldObjects_uncached(c));
12  
  }
13  
  ret fields;
14  
}
15  
16  
end scope

Author comment

Began life as a copy of #1018911

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018923
Snippet name: nonStaticNonPrimitiveFieldObjects
Eternal ID of this version: #1018923/6
Text MD5: c27569dfb017be12e75b4ae31a6e7422
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-16 00:07:58
Source code size: 404 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 267 / 329
Version history: 5 change(s)
Referenced in: [show references]