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

19
LINES

< > BotCompany Repo | #1011368 // Replace String with CharSequence [not that easy]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (5622L/38K).

!7

p {
  Pair<S, L<S>> p = getServerTranslationAndLibs(#1011364);
  S src = p.a;
  L<S> tok = javaTok(src);
  jreplace(tok, "String", "CharSequence");
  
  /*jreplace(tok,
    [[static <id> _compactString(<id> s) { return s; }]],
    [[static CharSequence _compactString(CharSequence s) {
      return s;
    }]]);*/

  src = join(tok);
  print(src);
  Class c = veryQuickJava3(src, p.b);
  print("Yo!");
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1011368
Snippet name: Replace String with CharSequence [not that easy]
Eternal ID of this version: #1011368/6
Text MD5: f2b0ab03ab58ee54afece5bce85a812d
Transpilation MD5: 40e242f04ba6e3c5b7637997267b04e7
Author: stefan
Category: javax / optimization
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-26 04:12:46
Source code size: 425 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 580 / 1313
Version history: 5 change(s)
Referenced in: [show references]