8157322: Several typos in javadoc
Reviewed-by: alexp, serb
This commit is contained in:
parent
c839e6ceee
commit
6e108c8b13
@ -166,8 +166,7 @@ public class CPrinterGraphicsConfig extends GraphicsConfiguration {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Returns a {@code AffineTransform} that can be concatenated
|
||||
* Returns an {@code AffineTransform} that can be concatenated
|
||||
* with the default {@code AffineTransform}
|
||||
* of a {@code GraphicsConfiguration} so that 72 units in user
|
||||
* space equals 1 inch in device space.
|
||||
|
@ -32,7 +32,7 @@ package com.sun.media.sound;
|
||||
public final class AudioSynthesizerPropertyInfo {
|
||||
|
||||
/**
|
||||
* Constructs a {@code AudioSynthesizerPropertyInfo} object with a given
|
||||
* Constructs an {@code AudioSynthesizerPropertyInfo} object with a given
|
||||
* name and value. The {@code description} and {@code choices}
|
||||
* are initialized by {@code null} values.
|
||||
*
|
||||
|
@ -360,8 +360,7 @@ public abstract class GraphicsConfiguration {
|
||||
public abstract AffineTransform getDefaultTransform();
|
||||
|
||||
/**
|
||||
*
|
||||
* Returns a {@code AffineTransform} that can be concatenated
|
||||
* Returns an {@code AffineTransform} that can be concatenated
|
||||
* with the default {@code AffineTransform}
|
||||
* of a {@code GraphicsConfiguration} so that 72 units in user
|
||||
* space equals 1 inch in device space.
|
||||
|
@ -74,7 +74,7 @@ public final class TransformAttribute implements Serializable {
|
||||
|
||||
/**
|
||||
* Returns a copy of the wrapped transform.
|
||||
* @return a {@code AffineTransform} that is a copy of the wrapped
|
||||
* @return an {@code AffineTransform} that is a copy of the wrapped
|
||||
* transform of this {@code TransformAttribute}.
|
||||
*/
|
||||
public AffineTransform getTransform() {
|
||||
|
@ -619,9 +619,9 @@ public class ParameterBlock implements Cloneable, Serializable {
|
||||
*
|
||||
* @param index the index of the parameter to be returned.
|
||||
* @return the parameter at the specified index
|
||||
* as a {@code int} value.
|
||||
* as an {@code int} value.
|
||||
* @throws ClassCastException if the parameter at the
|
||||
* specified index is not a {@code Integer}
|
||||
* specified index is not an {@code Integer}
|
||||
* @throws NullPointerException if the parameter at the specified
|
||||
* index is {@code null}
|
||||
* @throws ArrayIndexOutOfBoundsException if {@code index}
|
||||
|
@ -136,7 +136,7 @@ public class Encoder {
|
||||
* a shared internal persistence delegate is returned
|
||||
* that encodes {@code null} value.
|
||||
* <li>
|
||||
* If the type is a {@code enum} declaration,
|
||||
* If the type is an {@code enum} declaration,
|
||||
* a shared internal persistence delegate is returned
|
||||
* that encodes constants of this enumeration
|
||||
* by their names.
|
||||
|
@ -89,7 +89,7 @@ public abstract class PersistenceDelegate {
|
||||
|
||||
/**
|
||||
* The {@code writeObject} is a single entry point to the persistence
|
||||
* and is used by a {@code Encoder} in the traditional
|
||||
* and is used by an {@code Encoder} in the traditional
|
||||
* mode of delegation. Although this method is not final,
|
||||
* it should not need to be subclassed under normal circumstances.
|
||||
* <p>
|
||||
|
@ -32,7 +32,7 @@ import java.nio.ByteOrder;
|
||||
|
||||
/**
|
||||
* A seekable input stream interface for use by
|
||||
* {@code ImageReader}s. Various input sources, such as
|
||||
* {@code ImageReader}s. Various input sources, such as
|
||||
* {@code InputStream}s and {@code File}s,
|
||||
* as well as future fast I/O sources may be "wrapped" by a suitable
|
||||
* implementation of this interface for use by the Image I/O API.
|
||||
@ -469,7 +469,7 @@ public interface ImageInputStream extends DataInput, Closeable {
|
||||
* then a {@code UTFDataFormatException} is thrown.
|
||||
*
|
||||
* <p> If end of file is encountered at any time during this
|
||||
* entire process, then an {@code java.io.EOFException} is thrown.
|
||||
* entire process, then a {@code java.io.EOFException} is thrown.
|
||||
*
|
||||
* <p> After every group has been converted to a character by this
|
||||
* process, the characters are gathered, in the same order in
|
||||
@ -499,7 +499,7 @@ public interface ImageInputStream extends DataInput, Closeable {
|
||||
/**
|
||||
* Reads {@code len} bytes from the stream, and stores them
|
||||
* into {@code b} starting at index {@code off}.
|
||||
* If the end of the stream is reached, an {@code java.io.EOFException}
|
||||
* If the end of the stream is reached, a {@code java.io.EOFException}
|
||||
* will be thrown.
|
||||
*
|
||||
* <p> The bit offset within the stream is reset to zero before
|
||||
@ -523,7 +523,7 @@ public interface ImageInputStream extends DataInput, Closeable {
|
||||
/**
|
||||
* Reads {@code b.length} bytes from the stream, and stores them
|
||||
* into {@code b} starting at index {@code 0}.
|
||||
* If the end of the stream is reached, an {@code java.io.EOFException}
|
||||
* If the end of the stream is reached, a {@code java.io.EOFException}
|
||||
* will be thrown.
|
||||
*
|
||||
* <p> The bit offset within the stream is reset to zero before
|
||||
@ -543,8 +543,8 @@ public interface ImageInputStream extends DataInput, Closeable {
|
||||
* Reads {@code len} shorts (signed 16-bit integers) from the
|
||||
* stream according to the current byte order, and
|
||||
* stores them into {@code s} starting at index
|
||||
* {@code off}. If the end of the stream is reached, an
|
||||
* {@code java.io.EOFException} will be thrown.
|
||||
* {@code off}. If the end of the stream is reached,
|
||||
* a {@code java.io.EOFException} will be thrown.
|
||||
*
|
||||
* <p> The bit offset within the stream is reset to zero before
|
||||
* the read occurs.
|
||||
@ -568,8 +568,8 @@ public interface ImageInputStream extends DataInput, Closeable {
|
||||
* Reads {@code len} chars (unsigned 16-bit integers) from the
|
||||
* stream according to the current byte order, and
|
||||
* stores them into {@code c} starting at index
|
||||
* {@code off}. If the end of the stream is reached, an
|
||||
* {@code java.io.EOFException} will be thrown.
|
||||
* {@code off}. If the end of the stream is reached,
|
||||
* a {@code java.io.EOFException} will be thrown.
|
||||
*
|
||||
* <p> The bit offset within the stream is reset to zero before
|
||||
* the read occurs.
|
||||
@ -593,8 +593,8 @@ public interface ImageInputStream extends DataInput, Closeable {
|
||||
* Reads {@code len} ints (signed 32-bit integers) from the
|
||||
* stream according to the current byte order, and
|
||||
* stores them into {@code i} starting at index
|
||||
* {@code off}. If the end of the stream is reached, an
|
||||
* {@code java.io.EOFException} will be thrown.
|
||||
* {@code off}. If the end of the stream is reached,
|
||||
* a {@code java.io.EOFException} will be thrown.
|
||||
*
|
||||
* <p> The bit offset within the stream is reset to zero before
|
||||
* the read occurs.
|
||||
@ -618,8 +618,8 @@ public interface ImageInputStream extends DataInput, Closeable {
|
||||
* Reads {@code len} longs (signed 64-bit integers) from the
|
||||
* stream according to the current byte order, and
|
||||
* stores them into {@code l} starting at index
|
||||
* {@code off}. If the end of the stream is reached, an
|
||||
* {@code java.io.EOFException} will be thrown.
|
||||
* {@code off}. If the end of the stream is reached,
|
||||
* a {@code java.io.EOFException} will be thrown.
|
||||
*
|
||||
* <p> The bit offset within the stream is reset to zero before
|
||||
* the read occurs.
|
||||
@ -644,7 +644,7 @@ public interface ImageInputStream extends DataInput, Closeable {
|
||||
* floats) from the stream according to the current byte order,
|
||||
* and stores them into {@code f} starting at
|
||||
* index {@code off}. If the end of the stream is reached,
|
||||
* an {@code java.io.EOFException} will be thrown.
|
||||
* a {@code java.io.EOFException} will be thrown.
|
||||
*
|
||||
* <p> The bit offset within the stream is reset to zero before
|
||||
* the read occurs.
|
||||
@ -669,7 +669,7 @@ public interface ImageInputStream extends DataInput, Closeable {
|
||||
* floats) from the stream according to the current byte order,
|
||||
* and stores them into {@code d} starting at
|
||||
* index {@code off}. If the end of the stream is reached,
|
||||
* an {@code java.io.EOFException} will be thrown.
|
||||
* a {@code java.io.EOFException} will be thrown.
|
||||
*
|
||||
* <p> The bit offset within the stream is reset to zero before
|
||||
* the read occurs.
|
||||
@ -781,7 +781,7 @@ public interface ImageInputStream extends DataInput, Closeable {
|
||||
* byte order is being used (i.e., {@code getByteOrder() == false}).
|
||||
*
|
||||
* <p> If the end of the stream is encountered before all the bits
|
||||
* have been read, an {@code java.io.EOFException} is thrown.
|
||||
* have been read, a {@code java.io.EOFException} is thrown.
|
||||
*
|
||||
* @param numBits the number of bits to read, as an {@code int}
|
||||
* between 0 and 64, inclusive.
|
||||
@ -848,8 +848,8 @@ public interface ImageInputStream extends DataInput, Closeable {
|
||||
* {@code pos} is smaller than the flushed position (as
|
||||
* returned by {@code getflushedPosition}).
|
||||
*
|
||||
* <p> It is legal to seek past the end of the file; an
|
||||
* {@code java.io.EOFException} will be thrown only if a read is
|
||||
* <p> It is legal to seek past the end of the file;
|
||||
* a {@code java.io.EOFException} will be thrown only if a read is
|
||||
* performed.
|
||||
*
|
||||
* @param pos a {@code long} containing the desired file
|
||||
|
@ -44,7 +44,7 @@ import java.io.IOException;
|
||||
* a non-zero bit offset before a byte-aligned read. When reading bytes,
|
||||
* any bit offset is set to 0 before the read; when writing bytes, a
|
||||
* non-zero bit offset causes the remaining bits in the byte to be written
|
||||
* as 0s. The byte-aligned write then starts at the next byte position.
|
||||
* as 0s. The byte-aligned write then starts at the next byte position.
|
||||
*
|
||||
* @see ImageInputStream
|
||||
*
|
||||
@ -290,7 +290,7 @@ public interface ImageOutputStream extends ImageInputStream, DataOutput {
|
||||
/**
|
||||
* Writes a {@code double} value, which is comprised of four
|
||||
* bytes, to the output stream. It does this as if it first
|
||||
* converts this {@code double} value to an {@code long}
|
||||
* converts this {@code double} value to a {@code long}
|
||||
* in exactly the manner of the
|
||||
* {@code Double.doubleToLongBits} method and then writes the
|
||||
* long value in exactly the manner of the {@code writeLong}
|
||||
|
@ -26,8 +26,8 @@
|
||||
package javax.sound.sampled;
|
||||
|
||||
/**
|
||||
* A {@code EnumControl} provides control over a set of discrete possible values
|
||||
* , each represented by an object. In a graphical user interface, such a
|
||||
* An {@code EnumControl} provides control over a set of discrete possible
|
||||
* values, each represented by an object. In a graphical user interface, such a
|
||||
* control might be represented by a set of buttons, each of which chooses one
|
||||
* value or setting. For example, a reverb control might provide several preset
|
||||
* reverberation settings, instead of providing continuously adjustable
|
||||
|
@ -38,16 +38,16 @@ public class UnsupportedAudioFileException extends Exception {
|
||||
private static final long serialVersionUID = -139127412623160368L;
|
||||
|
||||
/**
|
||||
* Constructs a {@code UnsupportedAudioFileException} that has {@code null}
|
||||
* as its error detail message.
|
||||
* Constructs an {@code UnsupportedAudioFileException} that has
|
||||
* {@code null} as its error detail message.
|
||||
*/
|
||||
public UnsupportedAudioFileException() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a {@code UnsupportedAudioFileException} that has the specified
|
||||
* detail message.
|
||||
* Constructs an {@code UnsupportedAudioFileException} that has the
|
||||
* specified detail message.
|
||||
*
|
||||
* @param message a string containing the error detail message
|
||||
*/
|
||||
|
@ -52,7 +52,7 @@ public class BorderFactory
|
||||
|
||||
//// LineBorder ///////////////////////////////////////////////////////////////
|
||||
/**
|
||||
* Creates a line border withe the specified color.
|
||||
* Creates a line border with the specified color.
|
||||
*
|
||||
* @param color a <code>Color</code> to use for the line
|
||||
* @return the <code>Border</code> object
|
||||
|
@ -718,10 +718,10 @@ public class GroupLayout implements LayoutManager2 {
|
||||
* <p>
|
||||
* Linked {@code Component}s are not be resizable.
|
||||
*
|
||||
* @param components the {@code Component}s that are to have the same size
|
||||
* @param axis the axis to link the size along; one of
|
||||
* {@code SwingConstants.HORIZONTAL} or
|
||||
* {@code SwingConstans.VERTICAL}
|
||||
* {@code SwingConstants.VERTICAL}
|
||||
* @param components the {@code Component}s that are to have the same size
|
||||
* @throws IllegalArgumentException if {@code components} is
|
||||
* {@code null}, or contains {@code null}; or {@code axis}
|
||||
* is not {@code SwingConstants.HORIZONTAL} or
|
||||
|
@ -346,7 +346,7 @@ public abstract class LookAndFeel
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a {@code InputMapUIResource} from <code>keys</code>. This is
|
||||
* Creates an {@code InputMapUIResource} from <code>keys</code>. This is
|
||||
* a convenience method for creating a new {@code InputMapUIResource},
|
||||
* invoking {@code loadKeyBindings(map, keys)}, and returning the
|
||||
* {@code InputMapUIResource}.
|
||||
|
@ -57,7 +57,7 @@ public interface AncestorListener extends EventListener {
|
||||
/**
|
||||
* Called when the source or one of its ancestors is made invisible
|
||||
* either by setVisible(false) being called or by its being
|
||||
* remove from the component hierarchy. The method is only called
|
||||
* removed from the component hierarchy. The method is only called
|
||||
* if the source has actually become invisible. For this to be true
|
||||
* at least one of its parents must by invisible or it is not in
|
||||
* a hierarchy rooted at a Window
|
||||
|
@ -160,7 +160,7 @@ public class BorderUIResource implements Border, UIResource, Serializable
|
||||
public static class EmptyBorderUIResource extends EmptyBorder implements UIResource {
|
||||
|
||||
/**
|
||||
* Constructs a {@code EmptyBorderUIResource}.
|
||||
* Constructs an {@code EmptyBorderUIResource}.
|
||||
* @param top the top inset of the border
|
||||
* @param left the left inset of the border
|
||||
* @param bottom the bottom inset of the border
|
||||
@ -170,7 +170,7 @@ public class BorderUIResource implements Border, UIResource, Serializable
|
||||
super(top, left, bottom, right);
|
||||
}
|
||||
/**
|
||||
* Constructs a {@code EmptyBorderUIResource}.
|
||||
* Constructs an {@code EmptyBorderUIResource}.
|
||||
* @param insets the insets of the border
|
||||
*/
|
||||
@ConstructorProperties({"borderInsets"})
|
||||
|
Loading…
x
Reference in New Issue
Block a user