Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7fc5946

Browse files
committed
Changed traceId in TxInternal from long to String
1 parent22c9679 commit7fc5946

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/main/java/io/api/etherscan/model/TxInternal.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
publicclassTxInternalextendsBaseTx {
1212

1313
privateStringtype;
14-
privatelongtraceId;
14+
privateStringtraceId;
1515
privateintisError;
1616
privateStringerrCode;
1717

@@ -20,7 +20,7 @@ public String getType() {
2020
returntype;
2121
}
2222

23-
publiclonggetTraceId() {
23+
publicStringgetTraceId() {
2424
returntraceId;
2525
}
2626

@@ -44,15 +44,15 @@ public boolean equals(Object o) {
4444

4545
TxInternalthat = (TxInternal)o;
4646

47-
if (traceId !=that.traceId)
47+
if (!Objects.equals(traceId,that.traceId))
4848
returnfalse;
4949
returnObjects.equals(errCode,that.errCode);
5050
}
5151

5252
@Override
5353
publicinthashCode() {
5454
intresult =super.hashCode();
55-
result =31 *result + (int) (traceId^ (traceId >>>32));
55+
result =31 *result + (traceId!=null ?traceId.hashCode() :0);
5656
result =31 *result + (errCode !=null ?errCode.hashCode() :0);
5757
returnresult;
5858
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp