From Dave: comment fix and unused import nix.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2599 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -23,7 +23,6 @@ package com.samskivert.io;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.OutputStream;
|
||||
import java.io.Reader;
|
||||
import java.io.Writer;
|
||||
|
||||
@@ -95,9 +95,9 @@ public class Throttle
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers an attempt at an operation and returns true if the operation should be performed
|
||||
* or false if it should be throttled (meaning N operations have already been performed in the
|
||||
* last M seconds).
|
||||
* Registers an attempt at an operation and returns true if the operation should be throttled
|
||||
* (meaning N operations have already been performed in the last M seconds), or false if the
|
||||
* operation is allowed to be performed.
|
||||
*
|
||||
* @return true if the throttle is activated, false if the operation can proceed.
|
||||
*/
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
package com.samskivert.util.tests;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.Random;
|
||||
import java.util.Set;
|
||||
import java.util.TreeSet;
|
||||
|
||||
Reference in New Issue
Block a user