mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-15 20:19:39 +02:00
Add errorprone check and fix found errors
Adds gradle-errorprone-plugin 0.0.8, requires Gradle 2.6.
This commit is contained in:
parent
8096da43e0
commit
d728204890
23 changed files with 64 additions and 44 deletions
|
@ -173,6 +173,7 @@ public final class Socks5TestProxy {
|
|||
* @param digest identifying the connection
|
||||
* @return socket or null if there is no socket for the given digest
|
||||
*/
|
||||
@SuppressWarnings("WaitNotInLoop")
|
||||
public Socket getSocket(String digest) {
|
||||
synchronized(this) {
|
||||
if (!startupComplete) {
|
||||
|
@ -180,13 +181,12 @@ public final class Socks5TestProxy {
|
|||
wait(5000);
|
||||
} catch (InterruptedException e) {
|
||||
LOGGER.log(Level.SEVERE, "exception", e);
|
||||
} finally {
|
||||
if (!startupComplete) {
|
||||
throw new IllegalStateException("Startup of Socks5TestProxy failed within 5 seconds");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!startupComplete) {
|
||||
throw new IllegalStateException("Startup of Socks5TestProxy failed within 5 seconds");
|
||||
}
|
||||
return this.connectionMap.get(digest);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue