Skip to content

Commit

Permalink
Fix checkstyle warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
violetagg committed Jun 3, 2022
1 parent 7bae40b commit 95f9216
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion codequality/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<property name="max" value="4"/>
</module>
<module name="NestedIfDepth">
<property name="max" value="4"/>
<property name="max" value="5"/>
</module>
<module name="NestedTryDepth">
<property name="max" value="4"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public int permitMaximum() {

@Override
public void returnPermits(int returned) {
for(;;) {
for (;;) {
int p = PERMITS.get(this);
if (p + returned > maxConnections) {
throw new IllegalArgumentException("Too many permits returned: returned=" + returned +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ final class Http2Pool implements InstrumentedPool<Connection>, InstrumentedPool.
((HTTP2AllocationStrategy) allocationStrategy).maxConcurrentStreams() : -1;
this.maxIdleTime = maxIdleTime;
this.maxLifeTime = maxLifeTime;
this.minConnections = allocationStrategy == null ? 0: allocationStrategy.permitMinimum();
this.minConnections = allocationStrategy == null ? 0 : allocationStrategy.permitMinimum();
this.pending = new ConcurrentLinkedDeque<>();
this.poolConfig = poolConfig;

Expand Down

0 comments on commit 95f9216

Please sign in to comment.