-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add UT for common module utils package.
- Loading branch information
1 parent
f9e97cd
commit 564b085
Showing
19 changed files
with
1,212 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,25 +29,12 @@ | |
* @author <a href="mailto:[email protected]">liaochuntao</a> | ||
*/ | ||
public final class ThreadUtils { | ||
|
||
private ThreadUtils() { | ||
} | ||
|
||
private static final int THREAD_MULTIPLER = 2; | ||
|
||
/** | ||
* Wait. | ||
* | ||
* @param object load object | ||
*/ | ||
public static void objectWait(Object object) { | ||
try { | ||
object.wait(); | ||
} catch (InterruptedException ignore) { | ||
Thread.interrupted(); | ||
} | ||
} | ||
|
||
/** | ||
* Sleep. | ||
* | ||
|
Oops, something went wrong.