Libraryless. Click here for Pure Java version (7744L/44K).
1  | scope nonDefaultInterfaceMethods  | 
2  | |
3  | // TODO: convert to regularly cleared normal map  | 
4  | static Map<Class, Method[]> #cache = newDangerousWeakHashMap();  | 
5  | |
6  | static Method[] nonDefaultInterfaceMethods(Class c) {
 | 
7  | Method[] methods;  | 
8  |   synchronized(cache) {
 | 
9  | methods = cache.get(c);  | 
10  | if (methods == null)  | 
11  | cache.put(c, methods = toTypedArray(Method.class, findNonDefaultInterfaceMethods(c)));  | 
12  | }  | 
13  | ret methods;  | 
14  | }  | 
Began life as a copy of #1034765
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1035155 | 
| Snippet name: | nonDefaultInterfaceMethods - cached version of findNonDefaultInterfaceMethods | 
| Eternal ID of this version: | #1035155/3 | 
| Text MD5: | 0de4046a50b14ce70a5041fdb67f563d | 
| Transpilation MD5: | c2ea5f8b1a68df7e4afa381fcc45dec5 | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2022-04-02 18:08:21 | 
| Source code size: | 425 bytes / 14 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 375 / 482 | 
| Version history: | 2 change(s) | 
| Referenced in: | [show references] |