Last active
February 9, 2019 05:49
-
-
Save satoshun/48eb4b3c07e03a4057297fca3d3e3f21 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CompanionTest { | |
companion object { | |
fun show(i: Int) { | |
println("started show method") | |
println("processing show method action $i") | |
println("finished show method") | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CompanionTest2 { | |
public void main() { | |
CompanionTest.Companion.show(10); | |
CompanionTest.Companion.show(11); | |
CompanionTest.Companion.show(12); | |
CompanionTest.Companion.show(13); | |
CompanionTest.Companion.show(14); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// execute D8 and decompile by jadx | |
class CompanionTest2 { | |
CompanionTest2() { | |
} | |
public void main() { | |
CompanionTest.Companion.show(10); | |
CompanionTest.Companion.show(11); | |
CompanionTest.Companion.show(12); | |
CompanionTest.Companion.show(13); | |
CompanionTest.Companion.show(14); | |
} | |
} | |
--- | |
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\u0018\u0000 \u00032\u00020\u0001:\u0001\u0003B\u0005¢\u0006\u0002\u0010\u0002"}, d2 = {"LCompanionTest;", "", "()V", "Companion"}, k = 1, mv = {1, 1, 13}) | |
public final class CompanionTest { | |
public static final Companion Companion = new Companion(); | |
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\b\b\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006"}, d2 = {"LCompanionTest$Companion;", "", "()V", "show", "", "i", ""}, k = 1, mv = {1, 1, 13}) | |
/* compiled from: CompanionTest.kt */ | |
/* renamed from: CompanionTest$Companion */ | |
public static final class Companion { | |
private Companion() { | |
} | |
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) { | |
this(); | |
} | |
public final void show(int i) { | |
System.out.println("started show method"); | |
StringBuilder stringBuilder = new StringBuilder(); | |
stringBuilder.append("processing show method action "); | |
stringBuilder.append(i); | |
System.out.println(stringBuilder.toString()); | |
System.out.println("finished show method"); | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// execute R8 and decompile by jadx | |
public class CompanionTest2 { | |
public void main() { | |
CompanionTest.show(10); | |
CompanionTest.show(11); | |
CompanionTest.show(12); | |
CompanionTest.show(13); | |
CompanionTest.show(14); | |
} | |
} | |
--- | |
public abstract class CompanionTest { | |
public static final void show(int i) { | |
System.out.println("started show method"); | |
StringBuilder stringBuilder = new StringBuilder(); | |
stringBuilder.append("processing show method action "); | |
stringBuilder.append(i); | |
System.out.println(stringBuilder.toString()); | |
System.out.println("finished show method"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment