Sponsor for 6666666: A better implementation of Character.isSupplementaryCodePoint
Martin Buchholz
martinrb at google.com
Tue Mar 23 22:59:29 UTC 2010
On Tue, Mar 23, 2010 at 05:22, Ulf Zibis <Ulf.Zibis at gmx.de> wrote:
> Am 13.03.2010 00:04, schrieb Martin Buchholz:
>>
>>> Remembers me that some months ago I prepared a beautified version of
>>> Character's source (things like above, replacing<code> against {@code},
>>> indentation inconsistencies etc.) Would there be interest to provide such
>>> a
>>> patch ?
I support the plan of fixing coding style in core libraries when there is
consensus amongst developers, as there is with
<code> => @code
and
@exception => @throws
I think the right way to do this is to modify large portions of the
java libraries using a script. The script should be checked into
the jdk repo as part of the fix. There should be automated verification
that the generated javadoc is left unchanged.
There is precedent, for example the recent whitespace changes by Kelly,
and my own fixes to @since in jdk6.
To get you started, here is some elisp code that I have used when
making such changes on a file-level:
(defun tt-code ()
(interactive)
(query-replace-regexp "<\\(tt\\|code\\)>\\([^&<>\\\\]+\\)</\\1>"
"{@code \\2}"))
I suggest as a goal, modifying java.{lang,util,io,nio}
Martin
More information about the core-libs-dev
mailing list