Skip to content

Commit 319ba7e

Browse files
committed
fix java 11 docs issues
1 parent d805d01 commit 319ba7e

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/main/java/io/apimatic/core/types/pagination/CheckedSupplier.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public interface CheckedSupplier<T, E extends CoreApiException> {
99
/**
1010
* @param <T> Represents type of stored value.
1111
* @param <E> Represents type of stored exception.
12-
* @param value Create an instance with stored exception of type E.
12+
* @param exception Create an instance with stored exception of type E.
1313
* @return created CheckedSupplier object.
1414
*/
1515
@SuppressWarnings("unchecked")
@@ -52,10 +52,10 @@ public T get() throws E, IOException {
5252
}
5353

5454
/**
55-
* Get the stored instance or throw an exception.
55+
* Get the stored instance or throw a stored exception.
5656
* @return The stored instance of type T.
57-
* @throws E
58-
* @throws IOException
57+
* @throws E The stored CoreApiException.
58+
* @throws IOException The stored IOException.
5959
*/
6060
T get() throws E, IOException;
6161
}

src/main/java/io/apimatic/core/types/pagination/PaginatedData.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ public int getPageSize() {
6868
/**
6969
* Get the items in current page converted to type T.
7070
* @param <T> Represents the type of items in list.
71-
* @param pageSupplier A converter to convert the CheckedSupplier of items to type T.
71+
* @param itemSupplier A converter to convert the CheckedSupplier of items to type T.
7272
* @return All items in current page converted via itemSupplier.
7373
*/
74-
public <T> List<T> getItems(Function<CheckedSupplier<I, E>, T> itemCreator) {
74+
public <T> List<T> getItems(Function<CheckedSupplier<I, E>, T> itemSupplier) {
7575
List<T> convertedItems = new ArrayList<>();
7676
for (CheckedSupplier<I, E> i : this.items) {
77-
convertedItems.add(itemCreator.apply(i));
77+
convertedItems.add(itemSupplier.apply(i));
7878
}
7979

8080
return convertedItems;

0 commit comments

Comments
 (0)