better way to do Debug only assert code
<p>I am writing my first Android application and I am liberally using asserts() from junit.framework.Assert</p>

<p>I would like to find a way to ensure that the asserts are only compiled into the debug build, not in the release build.</p>

<p>I know how to query the android:debuggable attribute from the manifest so I could create a variable and accomplish this in the following fashon:</p>

<p>static final boolean mDebug = ...</p>

<p>if (mDebug)
    Assert.assertNotNull(view);</p>

<p>Is there a better way to do this?  i.e. I would prefer not to use an if() with each assert.</p>

<p>thanks</p>
