test: remove commented code and style fixes (PR #520)
This commit is contained in:
@@ -12,7 +12,7 @@ import static org.hamcrest.MatcherAssert.assertThat;
|
||||
public class TestConditions extends IntegrationTest {
|
||||
|
||||
public static class TestCls {
|
||||
private boolean test(boolean a, boolean b, boolean c) {
|
||||
public boolean test(boolean a, boolean b, boolean c) {
|
||||
return (a && b) || c;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ public class TestConditions15 extends IntegrationTest {
|
||||
|
||||
public static class TestCls {
|
||||
|
||||
private static boolean test(final String name) {
|
||||
public static boolean test(final String name) {
|
||||
if (isEmpty(name)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@ package jadx.tests.integration.conditions;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import jadx.core.dex.nodes.ClassNode;
|
||||
import jadx.tests.api.IntegrationTest;
|
||||
|
||||
public class TestConditions2 extends IntegrationTest {
|
||||
@@ -25,10 +24,6 @@ public class TestConditions2 extends IntegrationTest {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
ClassNode cls = getClassNode(TestCls.class);
|
||||
String code = cls.getCode().toString();
|
||||
|
||||
// assertThat(code, containsString("return;"));
|
||||
// assertThat(code, not(containsString("else")));
|
||||
getClassNode(TestCls.class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user