Skip to content

Commit

Permalink
Javadoc fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
chakrit committed Apr 1, 2016
1 parent 0b159b7 commit d47a2a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main/java/co/omise/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ protected OkHttpClient httpClient() {

/**
* Returns {@link AccountResource} for accessing the
* <a href="https://www.omise.co/account-api">Account API</a>.
* <a href="https://www.omise.co/account-api">Account API</a>
*
* @return An {@link AccountResource} instance.
* @see <a href="https://www.omise.co/account-api">Account API</a>.
* @see <a href="https://www.omise.co/account-api">Account API</a>
*/
public AccountResource account() {
return account;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/co/omise/Endpoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* <li>The certificate hash to pin against.</li>
* <li>Wether to use the public key or the secret key.</li>
* </ul>
* </p>
*
* @see Resource
*/
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/co/omise/Serializer.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public DateTimeFormatter dateTimeFormatter() {
* @param klass The {@link Class} to deserialize the result into.
* @param <T> The type to deserialize the result into.
* @return An instance of type T deserialized from the input stream.
* @throws IOException
* @throws IOException on general I/O error.
*/
public <T extends OmiseObject> T deserialize(InputStream input, Class<T> klass) throws IOException {
return objectMapper.readerFor(klass).readValue(input);
Expand All @@ -105,7 +105,7 @@ public <T extends OmiseObject> T deserialize(InputStream input, Class<T> klass)
* @param ref The {@link TypeReference} of the type to deserialize the result into.
* @param <T> The type to deserialize the result into.
* @return An instance of the given type T deserialized from the input stream.
* @throws IOException
* @throws IOException on general I/O error.
*/
public <T extends OmiseObject> T deserialize(InputStream input, TypeReference<T> ref) throws IOException {
return objectMapper.readerFor(ref).readValue(input);
Expand Down Expand Up @@ -141,7 +141,7 @@ public <T extends OmiseObject> T deserializeFromMap(Map<String, Object> map, Typ
* @param output The {@link OutputStream} to serializes the model into.
* @param model The {@link OmiseObject} to serialize.
* @param <T> The type of the model to serialize.
* @throws IOException
* @throws IOException on general I/O error.
*/
public <T extends OmiseObject> void serialize(OutputStream output, T model) throws IOException {
objectMapper.writerFor(model.getClass()).writeValue(output, model);
Expand Down

0 comments on commit d47a2a0

Please sign in to comment.