Skip to content

Instantly share code, notes, and snippets.

@junkdog
Last active August 29, 2015 14:06
Show Gist options
  • Save junkdog/328a022fbf619c02f80b to your computer and use it in GitHub Desktop.
Save junkdog/328a022fbf619c02f80b to your computer and use it in GitHub Desktop.
/**
* Compiles to:
*
* public class BoolTest {
* public com.atex.onecms.ws.filedelivery.BoolTest();
* Code:
* 0: aload_0
* 1: invokespecial #1 // Method java/lang/Object."<init>":()V
* 4: return
*
* public void hello();
* Code:
* 0: iconst_0
* 1: istore_1
* 2: iconst_1
* 3: istore_2
* 4: iconst_1
* 5: istore_3
* 6: return
* }
*
*/
public class BoolTest {
public void hello() {
boolean whenFalse = false;
boolean whenTrue = true;
int shouldBeBool = 1 | 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment