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

7
LINES

< > BotCompany Repo | #1028475 // structure_checkForProblems - fail if structure is known not to unstructure

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

Libraryless. Click here for Pure Java version (3531L/23K).

sS structure_checkForProblems(O a) {
  S s = structure(a);
  int i = indexOfAnonymousClassInStruct(s);
  if (i >= 0)
    fail("Anonymous class found in struct at " + i + "/" + l(s) + ": " + substringWithEllipsis(s, i-50, i+50));
  ret s;
}

Author comment

Began life as a copy of #1028474

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028475
Snippet name: structure_checkForProblems - fail if structure is known not to unstructure
Eternal ID of this version: #1028475/6
Text MD5: 43e024f422eda4ec56026c997b6351cc
Transpilation MD5: 381ef3c8ac4c3a6b7906fa32dc224fe6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-21 00:20:12
Source code size: 245 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 96 / 159
Version history: 5 change(s)
Referenced in: [show references]