Skip to content

Instantly share code, notes, and snippets.

@lahwran
Created April 23, 2011 04:14
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 lahwran/938271 to your computer and use it in GitHub Desktop.
Save lahwran/938271 to your computer and use it in GitHub Desktop.
Smart compiler is smart
//eclipse compiled and jd-gui decompiled
public class asdf
{
public static final int x = 10;
public int z = 3;
public asdf() {
int y = 11; //YES!!!
this.z += y;
}
}
//original
public class asdf
{
public static final int x = 10;
public int z=3;
public asdf()
{
int y = x+1;
z+=y;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment