@SuppressWarnings({"WeakerAccess", "unused"}) class MyDemo { @JTranscKeep public List<MyDemoItem> items; }
@JTranscKeep public A() { aCount++; } }
@JTranscKeep public B() { bCount++; } }
@JTranscKeep public class Issue219 { static public void main(String[] args) { String[] strArr = new String[]{"1"}; int i = strArr.length - 1; while (i >= 0) { if ("1".equals(strArr[i--])) System.out.println("OK!"); } } }
@JTranscKeep public ConstructorTest(long a, Long b, double c) { this.a = a; this.b = b; this.c = c; } }
@SuppressWarnings("unused") static class TestEmptyAnnotationsClass { @JTranscKeep public int a; @JTranscKeep public TestEmptyAnnotationsClass(int z) { } @JTranscKeep public void methodWithoutAnnotations(String a, int b) { } }
@JTranscKeep public class SomeBasicClass<T> { @JTranscKeep T key; @JTranscKeep T[] array; }
@JTranscKeep public abstract class Impl_0 { protected String f = "Impl_0"; public String getF() { return f; } }
@SuppressWarnings("unused") @JTranscKeep class RcBase { public int a; private int ap; }
@SuppressWarnings({"WeakerAccess", "unused"}) class FieldTestClass { public byte _byte; public Byte _Byte; public int _int; public Integer _Integer; public double _double; @JTranscKeep public Double _Double; }
@JTranscKeep @SuppressWarnings("all") class GenericTest { @JTranscKeep public Map<String, Map<Integer, Double>> map; @JTranscKeep public List<Integer> method1(List<String> a, boolean b, Map<String, List<Integer>> c, int d) { throw new Error("Not supported calling!"); } }
@JTranscKeep static public char getC() { return 'C'; }
@JTranscKeep public MyDemoItem() { } }
@JTranscKeep public void methodWithoutAnnotations(String a, int b) { } }
@JTranscKeep public C(int a, int b, int c) { } }
@JTranscKeep public class Issue209 { static private final boolean TRUE = true; static private final boolean FALSE = false; static{ assert TRUE; assert !FALSE; } static public void main(String[] args) { System.out.println(TRUE); System.out.println(FALSE); } }
@SuppressWarnings("unused") @JTranscKeep native static public byte[] testArrayTypeMethod();
@JTranscKeep public interface InvocationHandler { Object invoke(Object proxy, Method method, Object[] args) throws Throwable; }
@JTranscKeep public TestEmptyAnnotationsClass(int z) { }
@SuppressWarnings("unused") @JTranscKeep static public long testInvokeMethod3(int a, boolean b, double c) { System.out.println("testInvokeMethodInt3:" + a + ":" + b + ":" + c); return Long.MAX_VALUE; }