harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject [classlib] Unicode sequences in JavaDoc comments
Date Wed, 13 Feb 2008 13:59:10 GMT
Just a heads-up that when you write Unicode sequences in JavaDoc 
comments they will be replaced by the actual Unicode character in the 
processed output.

If you want to depict the literal sequence you should use &#92;uXXXX 
format (where '&#92;' gets replaced by '\').

Makes things much more readable <g>.

Regards,
Tim

tellison@apache.org wrote:
> Author: tellison
> Date: Wed Feb 13 05:48:29 2008
> New Revision: 627408
> 
> URL: http://svn.apache.org/viewvc?rev=627408&view=rev
> Log:
> Replace actual Unicode literal sequences in javadoc comments with depictions of the sequence,
> i.e. writing \u0000 in a javadoc comment results in a nul char actually in the comment,
> but writing &#92;u0000 results in "\u0000" being produced.
> 
> Modified:
>     harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/BufferedReader.java
>     harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/StreamTokenizer.java
>     harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/AbstractStringBuilder.java
>     harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Character.java
>     harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/String.java
>     harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/StringBuffer.java
>     harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/FormattableFlags.java
>     harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/CharsetDecoder.java
>     harmony/enhanced/classlib/trunk/modules/regex/src/main/java/java/util/regex/Pattern.java
>     harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/CollationElementIterator.java

Mime
View raw message