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

7
LINES

< > BotCompany Repo | #1017149 // addDefaultVMOption

JavaX fragment (include)

1  
sbool addDefaultVMOption(S option) {
2  
  S s = defaultVMArgs(), old = s;
3  
  if (!s.contains(option)) // rough
4  
    s = trim(s + " " + option);
5  
  if (eq(old, s)) false;
6  
  ret true with setDefaultVMArgs(s);
7  
}

Author comment

Began life as a copy of #1011289

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017149
Snippet name: addDefaultVMOption
Eternal ID of this version: #1017149/2
Text MD5: be609b29cbb03abd3fb533c83dbad839
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-13 12:44:19
Source code size: 208 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 429 / 469
Version history: 1 change(s)
Referenced in: [show references]