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

16
LINES

< > BotCompany Repo | #1018923 // nonStaticNonPrimitiveFieldObjects

JavaX fragment (include)

scope nonStaticNonPrimitiveFieldObjects.

static final Map<Class, L<Field>> #cache = dangerousWeakMap();

static L<Field> nonStaticNonPrimitiveFieldObjects(O o) {
  Class c = o.getClass();
  L<Field> fields;
  synchronized(cache) {
    fields = cache.get(c);
    if (fields == null)
      cache.put(c, fields = nonStaticNonPrimitiveFieldObjects_uncached(c));
  }
  ret fields;
}

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: 262 / 324
Version history: 5 change(s)
Referenced in: [show references]