Skip to content

Instantly share code, notes, and snippets.

@ezura
Created July 7, 2017 00:01
Show Gist options
  • Save ezura/ba9279b9e2b5cafa26d725c415d7ca5d to your computer and use it in GitHub Desktop.
Save ezura/ba9279b9e2b5cafa26d725c415d7ca5d to your computer and use it in GitHub Desktop.
public static final void f() {
Integer v = Integer.valueOf(300);
Integer v2 = Integer.valueOf(300);
boolean var10000;
if(v == v2) {
var10000 = true;
} else {
var10000 = false;
}
}
public static final void _f() {
int v = 300;
int v2 = 300;
boolean var10000;
if(v == v2) {
var10000 = true;
} else {
var10000 = false;
}
}
fun f() {
val v: Int? = 300
val v2: Int? = 300
v === v2
// false
}
fun _f() {
val v: Int = 300
val v2: Int = 300
v === v2
// true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment