How to avoid this warning:warning: com.sun.org.apache.regexp.internal.RE is Sun proprietary API and may be removed in a future release
<p><code>private static RE          _TaskTypeRE                         = new RE("~:~([0-9]*)~");</code></p>

<p>and this requires <code>import com.sun.org.apache.regexp.internal.RE;</code></p>

<p>So on compiling I am getting the following warning.</p>

<pre><code> warning: com.sun.org.apache.regexp.internal.RE is Sun proprietary API and may be removed in a future release
    [javac] import com.sun.org.apache.regexp.internal.RE;
</code></pre>

<p>One solution is to not use that class.</p>

<p>Another solution is to ignore the warning.
If i want to avoid this class what is the better alternative.
Thanks</p>
