Libraryless. Click here for Pure Java version (2789L/17K).
1 | svoid dynamicObject_dropRawField(DynamicObject o, O key) { |
2 | if (o == null) ret; |
3 | |
4 | // double sync, but should be OK here because of locking order o > o.fieldValues |
5 | synchronized(o) { |
6 | // can drop the inner synchronization when we migrated all users |
7 | // of fieldValues to synchronizing on the object too |
8 | o.fieldValues = (LinkedHashMap) syncMapRemove_deleteMapIfEmpty((Map) o.fieldValues, key); |
9 | } |
10 | } |
Began life as a copy of #1031192
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031195 |
Snippet name: | dynamicObject_dropRawField |
Eternal ID of this version: | #1031195/9 |
Text MD5: | 484aeeac2d12bab75de2621db984f09b |
Transpilation MD5: | 066707af05e0fc2ac47b262c4a922816 |
Author: | stefan |
Category: | javax / concepts |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-05-28 15:24:57 |
Source code size: | 421 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 183 / 251 |
Version history: | 8 change(s) |
Referenced in: | [show references] |