Formatting fixes

This commit is contained in:
md_5 2019-08-21 20:04:16 +10:00
parent 34febec65f
commit 450c33db64
2 changed files with 6 additions and 6 deletions

View File

@ -14,10 +14,10 @@
<!-- See http://checkstyle.sourceforge.net/config_misc.html -->
<module name="RegexpSingleline">
<property name="format" value="\s+$"/>
<property name="minimum" value="0"/>
<property name="maximum" value="0"/>
<property name="message" value="Line has trailing spaces."/>
<property name="format" value="\s+$"/>
<property name="minimum" value="0"/>
<property name="maximum" value="0"/>
<property name="message" value="Line has trailing spaces."/>
</module>
<module name="TreeWalker">

View File

@ -16,14 +16,14 @@ public class ConnectionThrottle
public ConnectionThrottle(int throttleTime, int throttleLimit)
{
this(Ticker.systemTicker(), throttleTime, throttleLimit);
this( Ticker.systemTicker(), throttleTime, throttleLimit );
}
@VisibleForTesting
ConnectionThrottle(Ticker ticker, int throttleTime, int throttleLimit)
{
this.throttle = CacheBuilder.newBuilder()
.ticker(ticker)
.ticker( ticker )
.concurrencyLevel( Runtime.getRuntime().availableProcessors() )
.initialCapacity( 100 )
.expireAfterWrite( throttleTime, TimeUnit.MILLISECONDS )