The existing (`p.s.f. boolean DEBUG`) technique is preferable here, since it results in a compile-time code size optimization: All code guarded by the condition can be elided by the compiler.   (FWIW you'll see this pattern throughout the Android core framework).