Skip to content

Commit a2ff673

Browse files
committed
added javadocs, v4.2.4
1 parent 369a4a2 commit a2ff673

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

checkstyle.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@
6363

6464
<!-- Checks whether files end with a new line. -->
6565
<!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
66-
<module name="NewlineAtEndOfFile"/>
66+
<module name="NewlineAtEndOfFile">
67+
<property name="lineSeparator" value="lf"/>
68+
</module>
6769

6870
<!-- Checks that property files contain the same keys. -->
6971
<!-- See http://checkstyle.sf.net/config_misc.html#Translation -->

src/main/java/ai/preferred/venom/fetcher/AsyncFetcher.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,25 @@ public final class AsyncFetcher implements Fetcher {
132132
*/
133133
private final boolean compressed;
134134

135+
/**
136+
* Creates {@link BasicFuture} and fails the request with a specified exception.
137+
*
138+
* @param callback request callback
139+
* @param ex specified exeption
140+
* @return BasicFuture created
141+
*/
135142
private static Future<Response> failRequest(final FutureCallback<Response> callback, final Exception ex) {
136143
final BasicFuture<Response> f = new BasicFuture<>(callback);
137144
f.failed(ex);
138145
return f;
139146
}
140147

148+
/**
149+
* Creates {@link BasicFuture} and cancels the request.
150+
*
151+
* @param callback request callback
152+
* @return BasicFuture created
153+
*/
141154
private static Future<Response> cancelRequest(final FutureCallback<Response> callback) {
142155
final BasicFuture<Response> f = new BasicFuture<>(callback);
143156
f.cancel(true);

0 commit comments

Comments
 (0)