For example, some say that
doSomething();
if ( false )
{
...
}
doSomethingElse();
would get compiled into
doSomething(); doSomethingElse();
Any thoughts???
doSomething();
if ( false )
{
...
}
doSomethingElse();
doSomething(); doSomethingElse();
|
|
|
/**
* User: wimDC Date: 9/11/11 Time: 15:26
*/
public class Test
{
public void anything(String unused){
if(false){
System.out.println("never printed.");
}
}
}
Compiled, and then decompiled it:
/* Decompiled through IntelliJad */
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packfields(3) packimports(3) splitstr(64) radix(10) lradix(10)
// Source File Name: Test.java
public class Test
{
public Test()
{
}
public void anything(String s)
{
}
}
Edited by wim DC, 10 November 2011 - 07:46 AM.
0 members, 1 guests, 0 anonymous users