Skip to content

Commit 6cca080

Browse files
committed
use other instead that
1 parent 662f062 commit 6cca080

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

core/src/main/java/org/elasticsearch/index/shard/DocsStats.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ public DocsStats(long count, long deleted, long totalSizeInBytes) {
4545
this.totalSizeInBytes = totalSizeInBytes;
4646
}
4747

48-
public void add(DocsStats that) {
49-
if (that == null) {
48+
public void add(DocsStats other) {
49+
if (other == null) {
5050
return;
5151
}
52-
this.totalSizeInBytes += that.totalSizeInBytes;
53-
this.count += that.count;
54-
this.deleted += that.deleted;
52+
this.totalSizeInBytes += other.totalSizeInBytes;
53+
this.count += other.count;
54+
this.deleted += other.deleted;
5555
}
5656

5757
public long getCount() {

0 commit comments

Comments
 (0)