Skip to content

Commit

Permalink
Generic -> misc to avoid confusion with generics
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Jan 5, 2024
1 parent 79e6c3b commit a1fbbbc
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
package com.replaymod.gradle.remap.generic
package com.replaymod.gradle.remap.misc

import com.replaymod.gradle.remap.util.TestData
import io.kotest.matchers.shouldBe
import org.junit.jupiter.api.Test

class TestGenericJavaCode {
class TestMiscJavaCode {
@Test
fun `remaps methods that have synthetic bridges that change the return type`() {
TestData.remap("""
@org.spongepowered.asm.mixin.Mixin(a.pkg.A.class)
abstract class MixinA {
private void test() {
public class Test {
public static void test() {
final a.pkg.A value = null;
value.aGeneratedSynthetic();
}
}
""".trimIndent()) shouldBe """
@org.spongepowered.asm.mixin.Mixin(b.pkg.B.class)
abstract class MixinA {
private void test() {
public class Test {
public static void test() {
final b.pkg.B value = null;
value.bGeneratedSynthetic();
}
Expand Down

0 comments on commit a1fbbbc

Please sign in to comment.