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   

Travelled to 2 computer(s): mqqgnosmbjvj, tvejysmllsmz

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: 2 / 10
Referenced in: [show references]