[threeten-dev] tzdb compiler cleanup

Xueming Shen xueming.shen at oracle.com
Wed Feb 13 18:32:33 PST 2013


its class doc does say

"StringTokenizer is a legacy class that is retained for compatibility 
reasons although its use is discouraged in new code. It is recommended 
that anyone seeking this functionality use the split method of String or 
the java.util.regex package instead."

And as the maintainer of regex/scanner, I feel I have the obligation to 
encourage
the "new" code to use them:-)

-sherman

On 2/13/13 3:57 PM, Stephen Colebourne wrote:
> I don't have any particular comments on this, other than saying that
> I've never been able to understand Scanner and I've never thought of
> StringTokenizer as semi-deprecated.
> Stephen
>
> On 13 February 2013 22:36, Xueming Shen <xueming.shen at oracle.com> wrote:
>> Some cleanup on tzdb compiler to prepare for a public tool.
>>
>> -removed the n-version supporting code, which, as we agreed, the JDK
>>   tool will never generates. This brings us much simple code.
>> -replaced the StringTokenizer with Scanner. We definitely should avoid
>>   using a "semi-deprecated" class in new code
>> -updated to use nio.file for those "File" operation, for no obvious
>> reason:-)
>>
>> http://cr.openjdk.java.net/~sherman/jdk8_threeten/tzcompiler2
>>
>> -Sherman



More information about the threeten-dev mailing list