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

4
LINES

< > BotCompany Repo | #1024465 // dynamicObject_releaseEmptyFieldValues - set fieldValues = null if it's empty (save memory)

JavaX fragment (include)

svoid dynamicObject_releaseEmptyFieldValues(DynamicObject o) {
  if (o != null && o.fieldValues != null && empty(o.fieldValues))
    o.fieldValues = null;
}

Author comment

Began life as a copy of #1024462

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1024465
Snippet name: dynamicObject_releaseEmptyFieldValues - set fieldValues = null if it's empty (save memory)
Eternal ID of this version: #1024465/1
Text MD5: fd4f8c0f5564ca4da5403772af842e0f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-13 12:51:52
Source code size: 159 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 117 / 153
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)