Skip to content

Commit 9e8e359

Browse files
author
Justin Lu
committed
8336787: Examine java.text.Format API for implSpec usage
Reviewed-by: liach
1 parent 4ea4d7c commit 9e8e359

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/java.base/share/classes/java/text/Format.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@ protected Format() {
149149

150150
/**
151151
* Formats an object to produce a string.
152-
* This method returns a string that would be equal to the string returned by
152+
*
153+
* @implSpec This method returns a string that would be equal to the string returned by
153154
* <blockquote>
154155
* {@link #format(Object, StringBuffer, FieldPosition) format}<code>(obj,
155156
* new StringBuffer(), new FieldPosition(0)).toString();</code>
156157
* </blockquote>
157-
*
158158
* @param obj The object to format
159159
* @return Formatted string.
160160
* @throws IllegalArgumentException if the Format cannot format the given
@@ -207,11 +207,11 @@ StringBuf format(Object obj,
207207
* to define what the legal values are for each attribute in the
208208
* {@code AttributedCharacterIterator}, but typically the attribute
209209
* key is also used as the attribute value.
210-
* <p>The default implementation creates an
211-
* {@code AttributedCharacterIterator} with no attributes. Subclasses
212-
* that support fields should override this and create an
213-
* {@code AttributedCharacterIterator} with meaningful attributes.
214210
*
211+
* @apiNote Subclasses that support fields should override this and create an
212+
* {@code AttributedCharacterIterator} with meaningful attributes.
213+
* @implSpec The default implementation creates an
214+
* {@code AttributedCharacterIterator} with no attributes.
215215
* @throws NullPointerException if obj is null.
216216
* @throws IllegalArgumentException when the Format cannot format the
217217
* given object.

0 commit comments

Comments
 (0)