File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
src/main/java/ai/preferred/venom/fetcher Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 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 -->
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments