mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-27 12:46:05 +01:00
Formatting fixes
This commit is contained in:
parent
34febec65f
commit
450c33db64
@ -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">
|
||||
|
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user