Skip to content

Commit

Permalink
Correct JsonElement javadoc exception references.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton committed Aug 9, 2014
1 parent f418528 commit c5dc3b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gson/src/main/java/com/google/gson/JsonElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public boolean isJsonNull() {

/**
* convenience method to get this element as a {@link JsonObject}. If the element is of some
* other type, a {@link ClassCastException} will result. Hence it is best to use this method
* other type, a {@link IllegalStateException} will result. Hence it is best to use this method
* after ensuring that this element is of the desired type by calling {@link #isJsonObject()}
* first.
*
Expand All @@ -92,7 +92,7 @@ public JsonObject getAsJsonObject() {

/**
* convenience method to get this element as a {@link JsonArray}. If the element is of some
* other type, a {@link ClassCastException} will result. Hence it is best to use this method
* other type, a {@link IllegalStateException} will result. Hence it is best to use this method
* after ensuring that this element is of the desired type by calling {@link #isJsonArray()}
* first.
*
Expand All @@ -108,7 +108,7 @@ public JsonArray getAsJsonArray() {

/**
* convenience method to get this element as a {@link JsonPrimitive}. If the element is of some
* other type, a {@link ClassCastException} will result. Hence it is best to use this method
* other type, a {@link IllegalStateException} will result. Hence it is best to use this method
* after ensuring that this element is of the desired type by calling {@link #isJsonPrimitive()}
* first.
*
Expand All @@ -124,7 +124,7 @@ public JsonPrimitive getAsJsonPrimitive() {

/**
* convenience method to get this element as a {@link JsonNull}. If the element is of some
* other type, a {@link ClassCastException} will result. Hence it is best to use this method
* other type, a {@link IllegalStateException} will result. Hence it is best to use this method
* after ensuring that this element is of the desired type by calling {@link #isJsonNull()}
* first.
*
Expand Down

0 comments on commit c5dc3b7

Please sign in to comment.