Remove unnecessary casts (#9208)

This commit is contained in:
lamber-ken 2020-02-05 13:52:33 +08:00 committed by GitHub
parent 3ef5c2f2e8
commit 48b95f02f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -56,10 +56,10 @@ public class WorkerConfig
private Period intermediaryPartitionTimeout = new Period("P1D");
@JsonProperty
private final long globalIngestionHeapLimitBytes = (long) (Runtime.getRuntime().maxMemory() / 6);
private final long globalIngestionHeapLimitBytes = Runtime.getRuntime().maxMemory() / 6;
@JsonProperty
private final int numConcurrentMerges = (int) Math.max(1, capacity / 2);
private final int numConcurrentMerges = Math.max(1, capacity / 2);
public String getIp()
{