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

11
LINES

< > BotCompany Repo | #1022109 // sizeCalculation_shouldSkipObject - these are counted, but not recursed into

JavaX fragment (include)

1  
static TreeSet<S> sizeCalculation_shouldSkipObject_set = asTreeSet(tlft([[
2  
  java.io.
3  
  java.lang.reflect.
4  
  java.awt.
5  
  javax.swing.
6  
]]);
7  
8  
sbool sizeCalculation_shouldSkipObject(O o) {
9  
  if (o instanceof Reference) true;
10  
  ret startsWithOneOf_treeSet(className(o), sizeCalculation_shouldSkipObject_set);
11  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022109
Snippet name: sizeCalculation_shouldSkipObject - these are counted, but not recursed into
Eternal ID of this version: #1022109/11
Text MD5: e790b41110bcd55d03327e418e089022
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-01-24 16:42:37
Source code size: 316 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 269 / 321
Version history: 10 change(s)
Referenced in: [show references]