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

7
LINES

< > BotCompany Repo | #1034692 // fixFieldValues - remove fieldValues introduced by older buggy cleanUp method etc

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (50L/1K).

svoid fixFieldValues(DynamicObject o) {
  if (o == null) ret;
  mapRemove(o.fieldValues, "ping_anyActions");
  mapRemove(o.fieldValues, "ping_pauseAll");
  mapRemove(o.fieldValues, "cleaningUp_flag");
  if (o cast ChangeTriggerable) o.change();
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034692
Snippet name: fixFieldValues - remove fieldValues introduced by older buggy cleanUp method etc
Eternal ID of this version: #1034692/2
Text MD5: 889145c156d8dd3197e87d045cc11804
Transpilation MD5: 09531c14702638c99e476f2dd38acafb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-03 17:58:27
Source code size: 252 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 128 / 198
Version history: 1 change(s)
Referenced in: [show references]