Skip to content

Instantly share code, notes, and snippets.

@yenerm
Created April 17, 2020 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yenerm/3e4795f9d5b6685b96a7dc4e3de5ea15 to your computer and use it in GitHub Desktop.
Save yenerm/3e4795f9d5b6685b96a7dc4e3de5ea15 to your computer and use it in GitHub Desktop.
Kotlin object decompiled to Java
<!-- Copyright 2019 Google LLC.
SPDX-License-Identifier: Apache-2.0 -->
public final class Singleton {
private static int count;
public static final Singleton INSTANCE;
public final int getCount() {return count;}
public final void setCount(int var1) {count = var1;}
public final int count() {
int var1 = count++;
return var1;
}
private Singleton() {}
static {
Singleton var0 = new Singleton();
INSTANCE = var0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment