Skip to content

Commit 0c4f7dc

Browse files
asdf2014matriv
authored andcommitted
Minor code improvements (#51921)
Fix some whitespaces, comments and usage of `this.`. (cherry picked from commit 9f59900)
1 parent 3d57a78 commit 0c4f7dc

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

server/src/main/java/org/elasticsearch/action/admin/cluster/allocation/ClusterAllocationExplanation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public ClusterInfo getClusterInfo() {
133133
return this.clusterInfo;
134134
}
135135

136-
/** \
136+
/**
137137
* Returns the shard allocation decision for attempting to assign or move the shard.
138138
*/
139139
public ShardAllocationDecision getShardAllocationDecision() {

server/src/main/java/org/elasticsearch/common/transport/BoundTransportAddress.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
* A bounded transport address is a tuple of {@link TransportAddress}, one array that represents
3131
* the addresses the transport is bound to, and the other is the published one that represents the address clients
3232
* should communicate on.
33-
*
34-
*
3533
*/
3634
public class BoundTransportAddress implements Writeable {
3735

server/src/main/java/org/elasticsearch/common/util/AbstractBigArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ private <T> T registerNewPage(Recycler.V<T> v, int page, int expectedSize) {
110110
cache[page] = v;
111111
assert Array.getLength(v.v()) == expectedSize;
112112
return v.v();
113-
}
113+
}
114114

115115
protected final byte[] newBytePage(int page) {
116116
if (recycler != null) {

server/src/main/java/org/elasticsearch/indices/breaker/CircuitBreakerStats.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ public CircuitBreakerStats(String name, long limit, long estimated, double overh
4949
}
5050

5151
public CircuitBreakerStats(StreamInput in) throws IOException {
52-
limit = in.readLong();
53-
estimated = in.readLong();
54-
overhead = in.readDouble();
52+
this.limit = in.readLong();
53+
this.estimated = in.readLong();
54+
this.overhead = in.readDouble();
5555
this.trippedCount = in.readLong();
5656
this.name = in.readString();
5757
}

0 commit comments

Comments
 (0)