Added @since to the JavaDoc for the new methods added to JsonElement.

Suggested in the r296 code review.
This commit is contained in:
Joel Leitch 2008-12-18 19:25:22 +00:00
parent de713614af
commit 0993d729e4
2 changed files with 3 additions and 1 deletions

View File

@ -225,7 +225,7 @@ public final class JsonArray extends JsonElement implements Iterable<JsonElement
}
throw new IllegalStateException();
}
@Override
public byte getAsByte() {
if (elements.size() == 1) {

View File

@ -230,6 +230,7 @@ public abstract class JsonElement {
* byte value.
* @throws IllegalStateException if the element is of the type {@link JsonArray} but contains
* more than a single element.
* @since 1.3
*/
public byte getAsByte() {
throw new UnsupportedOperationException();
@ -243,6 +244,7 @@ public abstract class JsonElement {
* char value.
* @throws IllegalStateException if the element is of the type {@link JsonArray} but contains
* more than a single element.
* @since 1.3
*/
public char getAsCharacter() {
throw new UnsupportedOperationException();