Skip to content

Commit

Permalink
update annotations for checkstyle updates
Browse files Browse the repository at this point in the history
  • Loading branch information
samvaity committed Feb 9, 2021
1 parent 2be0667 commit 7e30323
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public final class FormRecognizerAsyncClient {
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code formUrl}, {@code modelId} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PollerFlux<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeCustomFormsFromUrl(String modelId, String formUrl) {
return beginRecognizeCustomFormsFromUrl(modelId, formUrl, null);
Expand All @@ -118,7 +118,7 @@ public final class FormRecognizerAsyncClient {
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code formUrl}, {@code modelId} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PollerFlux<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeCustomFormsFromUrl(String modelId, String formUrl,
RecognizeCustomFormsOptions recognizeCustomFormsOptions) {
Expand Down Expand Up @@ -177,7 +177,7 @@ isFieldElementsIncluded, new SourcePath().setSource(formUrl), context).map(respo
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code form}, {@code modelId} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PollerFlux<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeCustomForms(String modelId, Flux<ByteBuffer> form, long length) {
return beginRecognizeCustomForms(modelId, form, length, null);
Expand Down Expand Up @@ -207,7 +207,7 @@ isFieldElementsIncluded, new SourcePath().setSource(formUrl), context).map(respo
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code form}, {@code modelId} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PollerFlux<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeCustomForms(String modelId, Flux<ByteBuffer> form, long length,
RecognizeCustomFormsOptions recognizeCustomFormsOptions) {
Expand Down Expand Up @@ -262,7 +262,7 @@ isFieldElementsIncluded, new SourcePath().setSource(formUrl), context).map(respo
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code formUrl} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PollerFlux<FormRecognizerOperationResult, List<FormPage>> beginRecognizeContentFromUrl(String formUrl) {
return beginRecognizeContentFromUrl(formUrl, null);
}
Expand All @@ -286,7 +286,7 @@ public PollerFlux<FormRecognizerOperationResult, List<FormPage>> beginRecognizeC
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code formUrl} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PollerFlux<FormRecognizerOperationResult, List<FormPage>>
beginRecognizeContentFromUrl(String formUrl, RecognizeContentOptions recognizeContentOptions) {
return beginRecognizeContentFromUrl(formUrl, recognizeContentOptions, Context.NONE);
Expand Down Expand Up @@ -337,7 +337,7 @@ public PollerFlux<FormRecognizerOperationResult, List<FormPage>> beginRecognizeC
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code form} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PollerFlux<FormRecognizerOperationResult, List<FormPage>> beginRecognizeContent(
Flux<ByteBuffer> form, long length) {
return beginRecognizeContent(form, length, null);
Expand Down Expand Up @@ -365,7 +365,7 @@ public PollerFlux<FormRecognizerOperationResult, List<FormPage>> beginRecognizeC
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code form} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PollerFlux<FormRecognizerOperationResult, List<FormPage>> beginRecognizeContent(Flux<ByteBuffer> form,
long length, RecognizeContentOptions recognizeContentOptions) {
return beginRecognizeContent(form, length, recognizeContentOptions, Context.NONE);
Expand Down Expand Up @@ -413,7 +413,7 @@ PollerFlux<FormRecognizerOperationResult, List<FormPage>> beginRecognizeContent(
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code receiptUrl} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PollerFlux<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeReceiptsFromUrl(String receiptUrl) {
return beginRecognizeReceiptsFromUrl(receiptUrl, null);
Expand All @@ -438,7 +438,7 @@ PollerFlux<FormRecognizerOperationResult, List<FormPage>> beginRecognizeContent(
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code receiptUrl} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PollerFlux<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeReceiptsFromUrl(String receiptUrl, RecognizeReceiptsOptions recognizeReceiptsOptions) {
return beginRecognizeReceiptsFromUrl(receiptUrl, recognizeReceiptsOptions, Context.NONE);
Expand Down Expand Up @@ -493,7 +493,7 @@ PollerFlux<FormRecognizerOperationResult, List<FormPage>> beginRecognizeContent(
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code receipt} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PollerFlux<FormRecognizerOperationResult, List<RecognizedForm>> beginRecognizeReceipts(
Flux<ByteBuffer> receipt, long length) {
return beginRecognizeReceipts(receipt, length, null);
Expand Down Expand Up @@ -523,7 +523,7 @@ public PollerFlux<FormRecognizerOperationResult, List<RecognizedForm>> beginReco
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code receipt} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PollerFlux<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeReceipts(Flux<ByteBuffer> receipt, long length,
RecognizeReceiptsOptions recognizeReceiptsOptions) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public final class FormRecognizerClient {
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code formUrl}, {@code modelId} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeCustomFormsFromUrl(String modelId, String formUrl) {
return beginRecognizeCustomFormsFromUrl(modelId, formUrl, null, Context.NONE);
Expand All @@ -93,7 +93,7 @@ public final class FormRecognizerClient {
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code formUrl}, {@code modelId} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeCustomFormsFromUrl(String modelId, String formUrl,
RecognizeCustomFormsOptions recognizeCustomFormsOptions, Context context) {
Expand Down Expand Up @@ -121,7 +121,7 @@ public final class FormRecognizerClient {
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code form}, {@code modelId} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeCustomForms(String modelId, InputStream form, long length) {
return beginRecognizeCustomForms(modelId, form, length, null, Context.NONE);
Expand Down Expand Up @@ -149,7 +149,7 @@ public final class FormRecognizerClient {
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code form}, {@code modelId} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeCustomForms(String modelId, InputStream form, long length,
RecognizeCustomFormsOptions recognizeCustomFormsOptions, Context context) {
Expand All @@ -174,7 +174,7 @@ public final class FormRecognizerClient {
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code formUrl} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<FormRecognizerOperationResult, List<FormPage>> beginRecognizeContentFromUrl(String formUrl) {
return beginRecognizeContentFromUrl(formUrl, null, Context.NONE);
}
Expand All @@ -198,7 +198,7 @@ public SyncPoller<FormRecognizerOperationResult, List<FormPage>> beginRecognizeC
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code formUrl} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<FormRecognizerOperationResult, List<FormPage>>
beginRecognizeContentFromUrl(String formUrl,
RecognizeContentOptions recognizeContentOptions, Context context) {
Expand All @@ -222,7 +222,7 @@ public SyncPoller<FormRecognizerOperationResult, List<FormPage>> beginRecognizeC
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code form} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<FormRecognizerOperationResult, List<FormPage>>
beginRecognizeContent(InputStream form, long length) {
return beginRecognizeContent(form, length, null, Context.NONE);
Expand All @@ -248,7 +248,7 @@ public SyncPoller<FormRecognizerOperationResult, List<FormPage>> beginRecognizeC
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code form} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<FormRecognizerOperationResult, List<FormPage>> beginRecognizeContent(InputStream form,
long length, RecognizeContentOptions recognizeContentOptions, Context context) {
Flux<ByteBuffer> buffer = Utility.toFluxByteBuffer(form);
Expand All @@ -273,7 +273,7 @@ public SyncPoller<FormRecognizerOperationResult, List<FormPage>> beginRecognizeC
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code receiptUrl} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeReceiptsFromUrl(String receiptUrl) {
return beginRecognizeReceiptsFromUrl(receiptUrl, null, Context.NONE);
Expand All @@ -299,7 +299,7 @@ public SyncPoller<FormRecognizerOperationResult, List<FormPage>> beginRecognizeC
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code receiptUrl} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeReceiptsFromUrl(String receiptUrl,
RecognizeReceiptsOptions recognizeReceiptsOptions, Context context) {
Expand All @@ -325,7 +325,7 @@ public SyncPoller<FormRecognizerOperationResult, List<FormPage>> beginRecognizeC
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code receipt} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeReceipts(InputStream receipt, long length) {
return beginRecognizeReceipts(receipt, length, null, Context.NONE);
Expand Down Expand Up @@ -353,7 +353,7 @@ public SyncPoller<FormRecognizerOperationResult, List<FormPage>> beginRecognizeC
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code receipt} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeReceipts(InputStream receipt, long length,
RecognizeReceiptsOptions recognizeReceiptsOptions, Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2050,7 +2050,7 @@ public Mono<PagedResponse<ModelInfo>> listCustomModelsSinglePageAsync(Context co
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about all custom models.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PagedFlux<ModelInfo> listCustomModelsAsync() {
return new PagedFlux<>(
() -> listCustomModelsSinglePageAsync(), nextLink -> listCustomModelsNextSinglePageAsync(nextLink));
Expand All @@ -2065,7 +2065,7 @@ public PagedFlux<ModelInfo> listCustomModelsAsync() {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about all custom models.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PagedFlux<ModelInfo> listCustomModelsAsync(Context context) {
return new PagedFlux<>(
() -> listCustomModelsSinglePageAsync(context),
Expand All @@ -2079,7 +2079,7 @@ public PagedFlux<ModelInfo> listCustomModelsAsync(Context context) {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about all custom models.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PagedIterable<ModelInfo> listCustomModels() {
return new PagedIterable<>(listCustomModelsAsync());
}
Expand All @@ -2093,7 +2093,7 @@ public PagedIterable<ModelInfo> listCustomModels() {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about all custom models.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PagedIterable<ModelInfo> listCustomModels(Context context) {
return new PagedIterable<>(listCustomModelsAsync(context));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ Mono<Response<Void>> deleteModelWithResponse(String modelId, Context context) {
*
* @return {@link PagedFlux} of {@link CustomFormModelInfo}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PagedFlux<CustomFormModelInfo> listCustomModels() {
try {
return new PagedFlux<>(() -> withContext(this::listFirstPageModelInfo),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public Response<Void> deleteModelWithResponse(String modelId, Context context) {
*
* @return {@link PagedIterable} of {@link CustomFormModelInfo} custom form model information.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PagedIterable<CustomFormModelInfo> listCustomModels() {
return new PagedIterable<>(client.listCustomModels(Context.NONE));
}
Expand All @@ -240,7 +240,7 @@ public PagedIterable<CustomFormModelInfo> listCustomModels() {
*
* @return {@link PagedIterable} of {@link CustomFormModelInfo} custom form model information.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PagedIterable<CustomFormModelInfo> listCustomModels(Context context) {
return new PagedIterable<>(client.listCustomModels(context));
}
Expand Down

0 comments on commit 7e30323

Please sign in to comment.