>>260
final なデバッグフラグならコンパイル時に消去されるので問題なし。

public static final boolean DEBUG
〜
if(DEBUG){
  System.out.println();
}

まあ、大概はassertで片付く気もするが。