Skip to content

Commit 0f765cb

Browse files
wdziemiaWalter Dziemianczyk
andauthored
MF-5246 Prefix variables with "this." in hashcode function to prevent name clashes with "hash" (#534)
* MF-5246 Prefix variables with "this." in hashcode function to prevent name clashes --------- Co-authored-by: Walter Dziemianczyk <wdziemia@dropbox.com>
1 parent 91fe565 commit 0f765cb

File tree

1,577 files changed

+4069
-4067
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,577 files changed

+4069
-4067
lines changed

core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/PhotoSourceArg.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ public boolean isOther() {
173173
@Override
174174
public int hashCode() {
175175
int hash = Arrays.hashCode(new Object [] {
176-
_tag,
177-
base64DataValue
176+
this._tag,
177+
this.base64DataValue
178178
});
179179
return hash;
180180
}

core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/SetProfilePhotoArg.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public PhotoSourceArg getPhoto() {
5252
@Override
5353
public int hashCode() {
5454
int hash = Arrays.hashCode(new Object [] {
55-
photo
55+
this.photo
5656
});
5757
return hash;
5858
}

core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/SetProfilePhotoResult.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public String getProfilePhotoUrl() {
5252
@Override
5353
public int hashCode() {
5454
int hash = Arrays.hashCode(new Object [] {
55-
profilePhotoUrl
55+
this.profilePhotoUrl
5656
});
5757
return hash;
5858
}

core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/LaunchEmptyResult.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ public boolean isComplete() {
178178
@Override
179179
public int hashCode() {
180180
int hash = Arrays.hashCode(new Object [] {
181-
_tag,
182-
asyncJobIdValue
181+
this._tag,
182+
this.asyncJobIdValue
183183
});
184184
hash = (31 * super.hashCode()) + hash;
185185
return hash;

core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/LaunchResultBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ public String getAsyncJobIdValue() {
163163
@Override
164164
public int hashCode() {
165165
int hash = Arrays.hashCode(new Object [] {
166-
_tag,
167-
asyncJobIdValue
166+
this._tag,
167+
this.asyncJobIdValue
168168
});
169169
return hash;
170170
}

core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/PollArg.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public String getAsyncJobId() {
6161
@Override
6262
public int hashCode() {
6363
int hash = Arrays.hashCode(new Object [] {
64-
asyncJobId
64+
this.asyncJobId
6565
});
6666
return hash;
6767
}

core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/AccessError.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,9 @@ public boolean isOther() {
254254
@Override
255255
public int hashCode() {
256256
int hash = Arrays.hashCode(new Object [] {
257-
_tag,
258-
invalidAccountTypeValue,
259-
paperAccessDeniedValue
257+
this._tag,
258+
this.invalidAccountTypeValue,
259+
this.paperAccessDeniedValue
260260
});
261261
return hash;
262262
}

core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/AuthError.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,8 @@ public boolean isOther() {
297297
@Override
298298
public int hashCode() {
299299
int hash = Arrays.hashCode(new Object [] {
300-
_tag,
301-
missingScopeValue
300+
this._tag,
301+
this.missingScopeValue
302302
});
303303
return hash;
304304
}

core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/RateLimitError.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ public long getRetryAfter() {
8686
@Override
8787
public int hashCode() {
8888
int hash = Arrays.hashCode(new Object [] {
89-
reason,
90-
retryAfter
89+
this.reason,
90+
this.retryAfter
9191
});
9292
return hash;
9393
}

core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/TokenFromOAuth1Arg.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ public String getOauth1TokenSecret() {
7676
@Override
7777
public int hashCode() {
7878
int hash = Arrays.hashCode(new Object [] {
79-
oauth1Token,
80-
oauth1TokenSecret
79+
this.oauth1Token,
80+
this.oauth1TokenSecret
8181
});
8282
return hash;
8383
}

0 commit comments

Comments
 (0)