Minor code improvements (#51921)

Fix some whitespaces, comments and usage of `this.`.

(cherry picked from commit 9f59900bf6389172811eb2279c17a2dc7cd9dfdf)
This commit is contained in:
Benedict Jin 2020-02-18 22:59:26 +08:00 committed by Marios Trivyzas
parent 3d57a78deb
commit 0c4f7dc193
No known key found for this signature in database
GPG Key ID: 8817B46B0CF36A3F
4 changed files with 5 additions and 7 deletions

View File

@ -133,7 +133,7 @@ public final class ClusterAllocationExplanation implements ToXContentObject, Wri
return this.clusterInfo;
}
/** \
/**
* Returns the shard allocation decision for attempting to assign or move the shard.
*/
public ShardAllocationDecision getShardAllocationDecision() {

View File

@ -30,8 +30,6 @@ import java.io.IOException;
* A bounded transport address is a tuple of {@link TransportAddress}, one array that represents
* the addresses the transport is bound to, and the other is the published one that represents the address clients
* should communicate on.
*
*
*/
public class BoundTransportAddress implements Writeable {

View File

@ -110,7 +110,7 @@ abstract class AbstractBigArray extends AbstractArray {
cache[page] = v;
assert Array.getLength(v.v()) == expectedSize;
return v.v();
}
}
protected final byte[] newBytePage(int page) {
if (recycler != null) {

View File

@ -49,9 +49,9 @@ public class CircuitBreakerStats implements Writeable, ToXContentObject {
}
public CircuitBreakerStats(StreamInput in) throws IOException {
limit = in.readLong();
estimated = in.readLong();
overhead = in.readDouble();
this.limit = in.readLong();
this.estimated = in.readLong();
this.overhead = in.readDouble();
this.trippedCount = in.readLong();
this.name = in.readString();
}