Libraryless. Click here for Pure Java version (3949L/23K).
1 | svoid test_tok_cleanImports() { |
2 | S in = [[ |
3 | import a.bla; |
4 | import a.b.blu; |
5 | import a.a.blo; |
6 | import x.c.*; |
7 | |
8 | blu = bla(); |
9 | ]]; |
10 | |
11 | S out = [[ |
12 | import a.bla; |
13 | import a.b.blu; |
14 | import x.c.*; |
15 | |
16 | blu = bla(); |
17 | ]]; |
18 | |
19 | assertJavaSourceEqualsVerbose(out, tok_cleanImports(javaTok(in))); |
20 | } |
Began life as a copy of #1031283
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031314 |
Snippet name: | test_tok_cleanImports (OK) |
Eternal ID of this version: | #1031314/3 |
Text MD5: | b7d8ddb1d88650efa779a6c43a8332ef |
Transpilation MD5: | f39939f02397bf1c94f1ff5371324bbb |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-04 22:01:18 |
Source code size: | 340 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 152 / 230 |
Version history: | 2 change(s) |
Referenced in: | [show references] |