Skip to content

Commit

Permalink
Fix incorrect javadoc references (#1478)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed Nov 16, 2022
1 parent acc47e8 commit 4aa054a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -40,7 +40,7 @@ jobs:
run: ./gradlew spotlessCheck

- name: Build artifacts
run: ./gradlew assemble
run: ./gradlew assemble javadoc

test:
name: Test
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/model/EventDataDeserializer.java
Expand Up @@ -17,7 +17,7 @@ public class EventDataDeserializer implements JsonDeserializer<Event.Data> {

/**
* Deserializes the JSON payload contained in an event's {@code data} attribute into an {@link
* EventData} instance.
* Event.Data} instance.
*/
@Override
public Event.Data deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
Expand Down
11 changes: 5 additions & 6 deletions src/main/java/com/stripe/model/EventDataObjectDeserializer.java
Expand Up @@ -65,12 +65,11 @@ public class EventDataObjectDeserializer {
}

/**
* Gets an {@code Optional} of data event object, in favor of the deprecated {@link
* EventData#getObject()}. When the optional is present, the deserialized {@code StripeObject}
* preserves high data integrity because of correspondence between schema of the API response and
* the model class (the underlying concrete class for abstract {@code StripeObject}) schema. This
* is when {@link Event#getApiVersion()} matches {@link Stripe#API_VERSION}. Otherwise, the
* optional is empty.
* Gets an {@code Optional} of data event object. When the optional is present, the deserialized
* {@code StripeObject} preserves high data integrity because of correspondence between schema of
* the PI response and the model class (the underlying concrete class for abstract {@code
* StripeObject}) schema. This is when {@link Event#getApiVersion()} matches {@link
* Stripe#API_VERSION}. Otherwise, the optional is empty.
*
* @return {@code Optional} of stripe object when deserialization is safe.
*/
Expand Down

0 comments on commit 4aa054a

Please sign in to comment.