Skip to content

Commit d1d45c2

Browse files
committed
change xxx.clase instead of this.getclase
1 parent 7d5a120 commit d1d45c2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/org/tron/keystore/WalletFile.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public boolean equals(Object o) {
7070
if (o == null) {
7171
return false;
7272
}
73-
if (o.getClass() != WalletFile.class) {
73+
if (o.getClass() != this.getClass()) {
7474
return false;
7575
}
7676

@@ -185,7 +185,7 @@ public boolean equals(Object o) {
185185
if (o == null) {
186186
return false;
187187
}
188-
if (o.getClass() != Crypto.class) {
188+
if (o.getClass() != this.getClass()) {
189189
return false;
190190
}
191191

@@ -256,7 +256,7 @@ public boolean equals(Object o) {
256256
if (o == null) {
257257
return false;
258258
}
259-
if (o.getClass() != CipherParams.class) {
259+
if (o.getClass() != this.getClass()) {
260260
return false;
261261
}
262262

@@ -331,7 +331,7 @@ public boolean equals(Object o) {
331331
if (o == null) {
332332
return false;
333333
}
334-
if (o.getClass() != Aes128CtrKdfParams.class) {
334+
if (o.getClass() != this.getClass()) {
335335
return false;
336336
}
337337

@@ -421,7 +421,7 @@ public boolean equals(Object o) {
421421
if (o == null) {
422422
return false;
423423
}
424-
if (o.getClass() != ScryptKdfParams.class) {
424+
if (o.getClass() != this.getClass()) {
425425
return false;
426426
}
427427

0 commit comments

Comments
 (0)