Skip to content

Commit

Permalink
Merge branch 'hotfix-0.5.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
jamierocks committed Oct 23, 2021
2 parents edb2b65 + 3628c91 commit 014802b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ val isSnapshot = version.toString().endsWith("-SNAPSHOT")

allprojects {
group = "org.cadixdev"
version = "0.5.7"
version = "0.5.8"
}

subprojects {
Expand Down
9 changes: 9 additions & 0 deletions changelogs/0.5.8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Lorenz 0.5.8
===

## Fixes

- [GH-53]\: Don't de-obfuscate field types twice, which can cause
invalid output in some conditions.

[GH-53]: https://github.com/CadixDev/Lorenz/issues/53
2 changes: 1 addition & 1 deletion lorenz/src/main/java/org/cadixdev/lorenz/MappingSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ default MappingSet removeFieldTypeProvider(final FieldTypeProvider fieldTypeProv
*/
default Type deobfuscate(final Type type) {
if (type instanceof FieldType) {
return this.deobfuscate(this.deobfuscate((FieldType) type));
return this.deobfuscate((FieldType) type);
}
return type;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import java.nio.file.Path;

/**
* A representation of a de-obfuscation mapping format serialized as text.
* A representation of a de-obfuscation mapping format serialised as text.
*
* @author Minecrell
* @since 0.4.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ private static MappingSet mappings() {
a.getOrCreateInnerClassMapping("a")
.setDeobfuscatedName("Inner");

final TopLevelClassMapping demo = mappings.getOrCreateTopLevelClassMapping("Demo")
.setDeobfuscatedName("DoubleDeobf");

return mappings;
}

Expand Down

0 comments on commit 014802b

Please sign in to comment.