Package jadx.tests.integration.conditions

Source Code of jadx.tests.integration.conditions.TestConditions2$TestCls

package jadx.tests.integration.conditions;

import jadx.core.dex.nodes.ClassNode;
import jadx.tests.api.IntegrationTest;

import org.junit.Test;

public class TestConditions2 extends IntegrationTest {

  public static class TestCls {
    int c;
    String d;
    String f;

    public void testComplexIf(String a, int b) {
      if (d == null || (c == 0 && b != -1 && d.length() == 0)) {
        c = a.codePointAt(c);
      } else {
        if (a.hashCode() != 0xCDE) {
          c = f.compareTo(a);
        }
      }
    }
  }

  @Test
  public void test() {
    ClassNode cls = getClassNode(TestCls.class);
    String code = cls.getCode().toString();

//    assertThat(code, containsString("return;"));
//    assertThat(code, not(containsString("else")));
  }
}
TOP

Related Classes of jadx.tests.integration.conditions.TestConditions2$TestCls

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.