sfPlayer1 / Matcher

Tool for tracking elements in obfuscated Java archives across releases
GNU General Public License v3.0
75 stars 41 forks source link

Fix JavaParser crashing on anonymous inner classes #22

Closed NebelNidas closed 1 year ago

NebelNidas commented 1 year ago

Fixes the Found ".1" <FLOATING_POINT_LITERAL>, expected one of "<" "extends" "implements" "{" error that occurred because the following code didn't handle anonymous classes: https://github.com/sfPlayer1/Matcher/blob/6468d7023090c544e873d67f3117136119fb3b50/src/matcher/srcprocess/SrcDecorator.java#L34-L56

But it was kinda messy anyway, so I rewrote the whole thing to be more compact and legible.

Before ![image](https://user-images.githubusercontent.com/48808497/200383994-e3c85865-223a-4ea2-ac97-39504586e761.png)
After ![image](https://user-images.githubusercontent.com/48808497/200383387-dc9483b2-9faa-4eb4-958d-37c3c84ca125.png)