Skip to content

Commit 23080dd

Browse files
committed
- Removed "this" prefix as per review suggested by Iroqueta
1 parent c336bee commit 23080dd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

java/src/main/java/com/genexus/internet/GXRestAPIClient.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -500,20 +500,20 @@ public void RestExecute() {
500500
httpClient.addHeader( "Content-Type", contentType);
501501
}
502502
else {
503-
if (this.httpMethod == "POST" || this.httpMethod == "PUT") {
503+
if (httpMethod == "POST" || httpMethod == "PUT") {
504504
bodyString = "{}";
505505
httpClient.addString(bodyString);
506506
httpClient.addHeader("Content-Type", contentType);
507507
}
508508
}
509-
if (this.location.getAuthenticationMethod() == 4 && this.location.getAccessToken() != null && ! this.location.getAccessToken().trim().isEmpty()) {
510-
httpClient.addHeader("Authorization", this.location.getAccessToken());
509+
if (location.getAuthenticationMethod() == 4 && location.getAccessToken() != null && ! location.getAccessToken().trim().isEmpty()) {
510+
httpClient.addHeader("Authorization", location.getAccessToken());
511511
}
512-
String serviceuri = ((this.location.getSecure() > 0) ? "https" : "http") + "://" + this.location.getHost();
513-
serviceuri += (this.location.getPort() != 80) ? ":" + Integer.toString(this.location.getPort()): "";
514-
serviceuri += "/" + this.location.getBaseURL() + "/" + this.location.getResourceName();
512+
String serviceuri = ((location.getSecure() > 0) ? "https" : "http") + "://" + location.getHost();
513+
serviceuri += (location.getPort() != 80) ? ":" + Integer.toString(location.getPort()): "";
514+
serviceuri += "/" + location.getBaseURL() + "/" + location.getResourceName();
515515
serviceuri += queryString;
516-
httpClient.execute( this.httpMethod, serviceuri);
516+
httpClient.execute( httpMethod, serviceuri);
517517

518518
if (httpClient.getStatusCode() >= 300 || httpClient.getErrCode() > 0) {
519519
errorCode = (httpClient.getErrCode() == 0)? 1 : httpClient.getErrCode();

0 commit comments

Comments
 (0)