Graham
4ca7fab636
Add blank line between is blocks
...
Seems to be a recent change in the IDEA formatter.
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
f143eef142
Move Kotlin files from src/{main,test}/java to src/{main,test}/kotlin
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
ce5b76ef0f
Rename dev.openrs2 package to org.openrs2
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
232ba32bbd
Enable explicit API mode
...
This already caught some cases of public members that should have been
private and one case where the inferred type was too specific.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
f291b121bc
Add TryCatchBlockNode::remap for consistency
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
8dd5292cb2
Remap argument names
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
8a563a3b26
Remap InnerClassNodes
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
45d59101b2
Add outer class/method support to ClassNodeRemapper
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
cbb7e8c086
Make AbstractInsnNode::remap public
...
It will be used by Library::remap in the future.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
325ce27a31
Add seperate {Field,Method}Node::remap extension methods
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
113820a9a2
Add ExtendedRemapper type with support for moving fields/methods
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
7e422447ef
Convert hasCode() to a property
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
3a29f61d7c
Remove existing FrameNode manipulation support
...
This code is no longer used. Remove it to avoid bit rot.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Major
097b334646
Propagate null frame types when remapping
...
Signed-off-by: Major <major@emulate.rs>
4 years ago
Graham
077fda4bab
Remove blank line for consistency
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
8ca3f428d2
Remove field.value null check
...
The mapValue() method already accepts and returns nulls.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
00f0279e15
Use safe call operator
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Major
5e32296905
Fix NPE for FrameNodes that aren't NEW/FULL
...
All of the other types have a value of null for their list of
locals/stack elements.
Signed-off-by: Major <major@emulate.rs>
4 years ago
Graham
6464f8dc77
Remap ClassNodes directly
...
This is necessary for a future commit that will track the original
indexes of AbstractInsnNodes throughout the deobfuscator, with the aim
of using this information to track local variables in the decompiled
code.
I suspect this will also improve performance, as we don't need to
re-allocate all of the tree objects.
4 years ago