Libraryless. Click here for Pure Java version (2789L/17K).
svoid dynamicObject_dropRawField(DynamicObject o, O key) { if (o == null) ret; // double sync, but should be OK here because of locking order o > o.fieldValues synchronized(o) { // can drop the inner synchronization when we migrated all users // of fieldValues to synchronizing on the object too o.fieldValues = (LinkedHashMap) syncMapRemove_deleteMapIfEmpty((Map) o.fieldValues, key); } }
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: | 424 / 531 |
| Version history: | 8 change(s) |
| Referenced in: | [show references] |