Skip to content

Commit 4c4271f

Browse files
committed
8242230: Whitespace typos, relaxed javadoc, formatting
Reviewed-by: darcy, igerasim
1 parent 59684e1 commit 4c4271f

19 files changed

Lines changed: 52 additions & 53 deletions

File tree

src/java.base/share/classes/java/io/DataOutput.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1995, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -113,8 +113,8 @@ public interface DataOutput {
113113
void writeBoolean(boolean v) throws IOException;
114114

115115
/**
116-
* Writes to the output stream the eight low-
117-
* order bits of the argument {@code v}.
116+
* Writes to the output stream the eight low-order
117+
* bits of the argument {@code v}.
118118
* The 24 high-order bits of {@code v}
119119
* are ignored. (This means that {@code writeByte}
120120
* does exactly the same thing as {@code write}
@@ -140,7 +140,7 @@ public interface DataOutput {
140140
* }</pre> <p>
141141
* The bytes written by this method may be
142142
* read by the {@code readShort} method
143-
* of interface {@code DataInput} , which
143+
* of interface {@code DataInput}, which
144144
* will then return a {@code short} equal
145145
* to {@code (short)v}.
146146
*
@@ -161,7 +161,7 @@ public interface DataOutput {
161161
* }</pre><p>
162162
* The bytes written by this method may be
163163
* read by the {@code readChar} method
164-
* of interface {@code DataInput} , which
164+
* of interface {@code DataInput}, which
165165
* will then return a {@code char} equal
166166
* to {@code (char)v}.
167167
*
@@ -183,7 +183,7 @@ public interface DataOutput {
183183
* }</pre><p>
184184
* The bytes written by this method may be read
185185
* by the {@code readInt} method of interface
186-
* {@code DataInput} , which will then
186+
* {@code DataInput}, which will then
187187
* return an {@code int} equal to {@code v}.
188188
*
189189
* @param v the {@code int} value to be written.
@@ -208,7 +208,7 @@ public interface DataOutput {
208208
* }</pre><p>
209209
* The bytes written by this method may be
210210
* read by the {@code readLong} method
211-
* of interface {@code DataInput} , which
211+
* of interface {@code DataInput}, which
212212
* will then return a {@code long} equal
213213
* to {@code v}.
214214
*
@@ -343,7 +343,7 @@ public interface DataOutput {
343343
* string {@code s} is written.<p> The
344344
* bytes written by this method may be read
345345
* by the {@code readUTF} method of interface
346-
* {@code DataInput} , which will then
346+
* {@code DataInput}, which will then
347347
* return a {@code String} equal to {@code s}.
348348
*
349349
* @param s the string value to be written.

src/java.base/share/classes/java/lang/Character.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ class Character implements java.io.Serializable, Comparable<Character> {
242242
* General category "Nd" in the Unicode specification.
243243
* @since 1.1
244244
*/
245-
public static final byte DECIMAL_DIGIT_NUMBER = 9;
245+
public static final byte DECIMAL_DIGIT_NUMBER = 9;
246246

247247
/**
248248
* General category "Nl" in the Unicode specification.
@@ -11072,7 +11072,7 @@ public static char reverseBytes(char ch) {
1107211072
* Note: if the specified character is not assigned a name by
1107311073
* the <i>UnicodeData</i> file (part of the Unicode Character
1107411074
* Database maintained by the Unicode Consortium), the returned
11075-
* name is the same as the result of expression.
11075+
* name is the same as the result of expression:
1107611076
*
1107711077
* <blockquote>{@code
1107811078
* Character.UnicodeBlock.of(codePoint).toString().replace('_', ' ')
@@ -11116,7 +11116,7 @@ public static String getName(int codePoint) {
1111611116
* <p>
1111711117
* Note: if a character is not assigned a name by the <i>UnicodeData</i>
1111811118
* file (part of the Unicode Character Database maintained by the Unicode
11119-
* Consortium), its name is defined as the result of expression
11119+
* Consortium), its name is defined as the result of expression:
1112011120
*
1112111121
* <blockquote>{@code
1112211122
* Character.UnicodeBlock.of(codePoint).toString().replace('_', ' ')

src/java.base/share/classes/java/lang/Class.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
* For example:
145145
*
146146
* <blockquote>
147-
* {@code System.out.println("The name of class Foo is: "+Foo.class.getName());}
147+
* {@code System.out.println("The name of class Foo is: " + Foo.class.getName());}
148148
* </blockquote>
149149
*
150150
* @param <T> the type of the class modeled by this {@code Class}
@@ -207,7 +207,7 @@ public String toString() {
207207
* The string is formatted as a list of type modifiers, if any,
208208
* followed by the kind of type (empty string for primitive types
209209
* and {@code class}, {@code enum}, {@code interface},
210-
* <code>&#64;</code>{@code interface}, or {@code record} as appropriate), followed
210+
* {@code @interface}, or {@code record} as appropriate), followed
211211
* by the type's name, followed by an angle-bracketed
212212
* comma-separated list of the type's type parameters, if any,
213213
* including informative bounds on the type parameters, if any.

src/java.base/share/classes/java/lang/FdLibm.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -237,8 +237,8 @@ public static strictfp double compute(double x, double y) {
237237
// floating-point divide. Splitting a floating-point
238238
// number into non-overlapping portions can be
239239
// accomplished by judicious use of multiplies and
240-
// additions. For details see T. J. Dekker, A Floating
241-
// Point Technique for Extending the Available Precision ,
240+
// additions. For details see T. J. Dekker, A Floating-Point
241+
// Technique for Extending the Available Precision,
242242
// Numerische Mathematik, vol. 18, 1971, pp.224-242 and
243243
// subsequent work.
244244

src/java.base/share/classes/java/lang/Runtime.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,8 +757,8 @@ void load0(Class<?> fromClass, String filename) {
757757
* for more details.
758758
*
759759
* Otherwise, the libname argument is loaded from a system library
760-
* location and mapped to a native library image in an implementation-
761-
* dependent manner.
760+
* location and mapped to a native library image in an
761+
* implementation-dependent manner.
762762
* <p>
763763
* First, if there is a security manager, its {@code checkLink}
764764
* method is called with the {@code libname} as its argument.

src/java.base/share/classes/java/lang/String.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2063,9 +2063,9 @@ public boolean contains(CharSequence s) {
20632063
* <blockquote>
20642064
* <code>
20652065
* {@link java.util.regex.Pattern}.{@link
2066-
* java.util.regex.Pattern#compile compile}(<i>regex</i>).{@link
2066+
* java.util.regex.Pattern#compile(String) compile}(<i>regex</i>).{@link
20672067
* java.util.regex.Pattern#matcher(java.lang.CharSequence) matcher}(<i>str</i>).{@link
2068-
* java.util.regex.Matcher#replaceFirst replaceFirst}(<i>repl</i>)
2068+
* java.util.regex.Matcher#replaceFirst(String) replaceFirst}(<i>repl</i>)
20692069
* </code>
20702070
* </blockquote>
20712071
*
@@ -2108,9 +2108,9 @@ public String replaceFirst(String regex, String replacement) {
21082108
* <blockquote>
21092109
* <code>
21102110
* {@link java.util.regex.Pattern}.{@link
2111-
* java.util.regex.Pattern#compile compile}(<i>regex</i>).{@link
2111+
* java.util.regex.Pattern#compile(String) compile}(<i>regex</i>).{@link
21122112
* java.util.regex.Pattern#matcher(java.lang.CharSequence) matcher}(<i>str</i>).{@link
2113-
* java.util.regex.Matcher#replaceAll replaceAll}(<i>repl</i>)
2113+
* java.util.regex.Matcher#replaceAll(String) replaceAll}(<i>repl</i>)
21142114
* </code>
21152115
* </blockquote>
21162116
*
@@ -2275,7 +2275,7 @@ public String replace(CharSequence target, CharSequence replacement) {
22752275
* <blockquote>
22762276
* <code>
22772277
* {@link java.util.regex.Pattern}.{@link
2278-
* java.util.regex.Pattern#compile compile}(<i>regex</i>).{@link
2278+
* java.util.regex.Pattern#compile(String) compile}(<i>regex</i>).{@link
22792279
* java.util.regex.Pattern#split(java.lang.CharSequence,int) split}(<i>str</i>,&nbsp;<i>n</i>)
22802280
* </code>
22812281
* </blockquote>

src/java.base/share/classes/java/lang/System.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,8 +1863,8 @@ public static void load(String filename) {
18631863
* for more details.
18641864
*
18651865
* Otherwise, the libname argument is loaded from a system library
1866-
* location and mapped to a native library image in an implementation-
1867-
* dependent manner.
1866+
* location and mapped to a native library image in an
1867+
* implementation-dependent manner.
18681868
* <p>
18691869
* The call {@code System.loadLibrary(name)} is effectively
18701870
* equivalent to the call

src/java.base/share/classes/java/lang/annotation/ElementType.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -33,8 +33,8 @@
3333
* given type.
3434
*
3535
* <p>The syntactic locations where annotations may appear are split into
36-
* <em>declaration contexts</em> , where annotations apply to declarations, and
37-
* <em>type contexts</em> , where annotations apply to types used in
36+
* <em>declaration contexts</em>, where annotations apply to declarations, and
37+
* <em>type contexts</em>, where annotations apply to types used in
3838
* declarations and expressions.
3939
*
4040
* <p>The constants {@link #ANNOTATION_TYPE}, {@link #CONSTRUCTOR}, {@link

src/java.base/share/classes/java/lang/annotation/Target.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -32,7 +32,7 @@
3232
* constants of {@link ElementType java.lang.annotation.ElementType}.
3333
*
3434
* <p>If an {@code @Target} meta-annotation is not present on an annotation type
35-
* {@code T} , then an annotation of type {@code T} may be written as a
35+
* {@code T}, then an annotation of type {@code T} may be written as a
3636
* modifier for any declaration except a type parameter declaration.
3737
*
3838
* <p>If an {@code @Target} meta-annotation is present, the compiler will enforce

src/java.base/share/classes/java/lang/reflect/Parameter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -111,7 +111,7 @@ public boolean isNamePresent() {
111111
* Returns a string describing this parameter. The format is the
112112
* modifiers for the parameter, if any, in canonical order as
113113
* recommended by <cite>The Java&trade; Language
114-
* Specification</cite>, followed by the fully- qualified type of
114+
* Specification</cite>, followed by the fully-qualified type of
115115
* the parameter (excluding the last [] if the parameter is
116116
* variable arity), followed by "..." if the parameter is variable
117117
* arity, followed by a space, followed by the name of the

0 commit comments

Comments
 (0)