Skip to content

Commit

Permalink
Fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Kamkin authored and Ivan Kamkin committed Jan 24, 2025
1 parent 7edcf43 commit 857db70
Show file tree
Hide file tree
Showing 18 changed files with 54 additions and 49 deletions.
32 changes: 17 additions & 15 deletions src/main/java/com/aspose/barcode/cloud/ServerConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,31 +32,33 @@
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.8.0")
public class ServerConfiguration {
public String URL;
public String url;
public String description;
public Map<String, ServerVariable> variables;

/**
* @param URL A URL to the target host.
* @param description A description of the host designated by the URL.
* Constructor
*
* @param url A url to the target host.
* @param description A description of the host designated by the url.
* @param variables A map between a variable name and its value. The value is used for
* substitution in the server's URL template.
* substitution in the server's url template.
*/
public ServerConfiguration(
String URL, String description, Map<String, ServerVariable> variables) {
this.URL = URL;
String url, String description, Map<String, ServerVariable> variables) {
this.url = url;
this.description = description;
this.variables = variables;
}

/**
* Format URL template using given variables.
* Format url template using given variables.
*
* @param variables A map between a variable name and its value.
* @return Formatted URL.
* @return Formatted url.
*/
public String URL(Map<String, String> variables) {
String url = this.URL;
public String url(Map<String, String> variables) {
String url = this.url;

// go through variables and replace placeholders
for (Map.Entry<String, ServerVariable> variable : this.variables.entrySet()) {
Expand All @@ -71,7 +73,7 @@ public String URL(Map<String, String> variables) {
throw new IllegalArgumentException(
"The variable "
+ name
+ " in the server URL has invalid value "
+ " in the server url has invalid value "
+ value
+ ".");
}
Expand All @@ -82,11 +84,11 @@ public String URL(Map<String, String> variables) {
}

/**
* Format URL template using default server variables.
* Format url template using default server variables.
*
* @return Formatted URL.
* @return Formatted url.
*/
public String URL() {
return URL(null);
public String url() {
return url(null);
}
}
2 changes: 2 additions & 0 deletions src/main/java/com/aspose/barcode/cloud/ServerVariable.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public class ServerVariable {
public HashSet<String> enumValues = null;

/**
* Constructor
*
* @param description A description for the server variable.
* @param defaultValue The default value to use for substitution.
* @param enumValues An enumeration of string values to be used if the substitution options are
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/com/aspose/barcode/cloud/api/RecognizeApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@ protected okhttp3.Call recognizeMultipartCall(
formParams.put("barcodeType", request.barcodeType);
}

if (request._file != null) {
formParams.put("file", request._file);
if (request.file != null) {
formParams.put("file", request.file);
}

if (request.recognitionMode != null) {
Expand Down Expand Up @@ -493,10 +493,10 @@ private okhttp3.Call recognizeMultipartValidateBeforeCall(
+ " when calling recognizeMultipart(...)");
}

// verify the required parameter 'request._file' is set
if (request._file == null) {
// verify the required parameter 'request.file' is set
if (request.file == null) {
throw new ApiException(
"Missing the required parameter 'request._file'"
"Missing the required parameter 'request.file'"
+ " when calling recognizeMultipart(...)");
}

Expand Down
10 changes: 5 additions & 5 deletions src/main/java/com/aspose/barcode/cloud/api/ScanApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ protected okhttp3.Call scanMultipartCall(
Map<String, String> headerParams = new HashMap<>();

Map<String, Object> formParams = new HashMap<>();
if (request._file != null) {
formParams.put("file", request._file);
if (request.file != null) {
formParams.put("file", request.file);
}

final String[] accepts = {"application/json", "application/xml"};
Expand Down Expand Up @@ -447,10 +447,10 @@ private okhttp3.Call scanMultipartValidateBeforeCall(
final ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException {

// verify the required parameter 'request._file' is set
if (request._file == null) {
// verify the required parameter 'request.file' is set
if (request.file == null) {
throw new ApiException(
"Missing the required parameter 'request._file'"
"Missing the required parameter 'request.file'"
+ " when calling scanMultipart(...)");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ private String toIndentedString(Object o) {
return o.toString().replace("\n", "\n ");
}

@Override
public boolean equals(Object o) {
if (this == o) {
return true;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/aspose/barcode/cloud/model/ApiError.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public class ApiError {
/**
* .
*
* @param Gets or sets api error code.
* @param Gets or sets error message.
* @param code Gets or sets api error code.
* @param message Gets or sets error message.
*/
public ApiError(String code, String message) {
this.code = code;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public class ApiErrorResponse {
/**
* .
*
* @param Gets or sets request Id.
* @param
* @param requestId Gets or sets request Id.
* @param error Param of type ApiError
*/
public ApiErrorResponse(String requestId, ApiError error) {
this.requestId = requestId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class BarcodeResponseList {
/**
* .
*
* @param List of barcodes which are present in image.
* @param barcodes List of barcodes which are present in image.
*/
public BarcodeResponseList(List<BarcodeResponse> barcodes) {
this.barcodes = barcodes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class EncodeData {
/**
* .
*
* @param String represents data to encode
* @param data String represents data to encode
*/
public EncodeData(String data) {
this.data = data;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public class GenerateParams {
/**
* .
*
* @param
* @param
* @param barcodeType Param of type EncodeBarcodeType
* @param encodeData Param of type EncodeData
*/
public GenerateParams(EncodeBarcodeType barcodeType, EncodeData encodeData) {
this.barcodeType = barcodeType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public class RecognizeBase64Request {
/**
* .
*
* @param Array of decode types to find on barcode
* @param Barcode image bytes encoded as base-64.
* @param barcodeTypes Array of decode types to find on barcode
* @param fileBase64 Barcode image bytes encoded as base-64.
*/
public RecognizeBase64Request(List<DecodeBarcodeType> barcodeTypes, String fileBase64) {
this.barcodeTypes = barcodeTypes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class ScanBase64Request {
/**
* .
*
* @param Barcode image bytes encoded as base-64.
* @param fileBase64 Barcode image bytes encoded as base-64.
*/
public ScanBase64Request(String fileBase64) {
this.fileBase64 = fileBase64;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class GenerateBodyRequestWrapper {
/**
* Generate barcode using POST request with parameters in body in json or xml format..
*
* @param generateParams
* @param generateParams Param of type GenerateParams
*/
public GenerateBodyRequestWrapper(GenerateParams generateParams) {
this.generateParams = generateParams;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public class GenerateMultipartRequestWrapper {
/**
* Generate barcode using POST request with parameters in multipart form..
*
* @param barcodeType
* @param barcodeType Param of type EncodeBarcodeType
* @param data String represents data to encode
*/
public GenerateMultipartRequestWrapper(EncodeBarcodeType barcodeType, String data) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class RecognizeBase64RequestWrapper {
* Recognize barcode from file in request body using POST requests with parameters in body in
* json or xml format..
*
* @param recognizeBase64Request
* @param recognizeBase64Request Param of type RecognizeBase64Request
*/
public RecognizeBase64RequestWrapper(RecognizeBase64Request recognizeBase64Request) {
this.recognizeBase64Request = recognizeBase64Request;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class RecognizeMultipartRequestWrapper {
public final DecodeBarcodeType barcodeType;

/** Barcode image file. */
public final File _file;
public final File file;

/** . */
public RecognitionMode recognitionMode;
Expand All @@ -52,11 +52,11 @@ public class RecognizeMultipartRequestWrapper {
* Recognize barcode from file in request body using POST requests with parameters in multipart
* form..
*
* @param barcodeType
* @param _file Barcode image file
* @param barcodeType Param of type DecodeBarcodeType
* @param file Barcode image file
*/
public RecognizeMultipartRequestWrapper(DecodeBarcodeType barcodeType, File _file) {
public RecognizeMultipartRequestWrapper(DecodeBarcodeType barcodeType, File file) {
this.barcodeType = barcodeType;
this._file = _file;
this.file = file;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class ScanBase64RequestWrapper {
* Scan barcode from file in request body using POST requests with parameter in body in json or
* xml format..
*
* @param scanBase64Request
* @param scanBase64Request Param of type ScanBase64Request
*/
public ScanBase64RequestWrapper(ScanBase64Request scanBase64Request) {
this.scanBase64Request = scanBase64Request;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
/** Scan barcode from file in request body using POST requests with parameter in multipart form. */
public class ScanMultipartRequestWrapper {
/** Barcode image file. */
public final File _file;
public final File file;

/**
* Scan barcode from file in request body using POST requests with parameter in multipart form..
*
* @param _file Barcode image file
* @param file Barcode image file
*/
public ScanMultipartRequestWrapper(File _file) {
this._file = _file;
public ScanMultipartRequestWrapper(File file) {
this.file = file;
}
}

0 comments on commit 857db70

Please sign in to comment.