fix: make correct hash calculation for GenericObject type (#705)

This commit is contained in:
Skylot
2019-07-10 16:58:52 +03:00
parent f57dfb3f2e
commit e4fc6774b1
2 changed files with 23 additions and 4 deletions
@@ -0,0 +1,16 @@
package jadx.core.dex.instructions.args;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class ArgTypeTest {
@Test
void testEqualsOfGenericTypes() {
ArgType first = ArgType.generic("java.lang.List", ArgType.STRING);
ArgType second = ArgType.generic("Ljava/lang/List;", ArgType.STRING);
assertEquals(first, second);
}
}