mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 06:16:40 +00:00
Minor code improvements (#51921)
Fix some whitespaces, comments and usage of `this.`. (cherry picked from commit 9f59900bf6389172811eb2279c17a2dc7cd9dfdf)
This commit is contained in:
parent
3d57a78deb
commit
0c4f7dc193
@ -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() {
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user