mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-10 14:16:00 +01:00
Raise source compatibility to 1.7 (Java7)
Now that Java 8 is released, it's time to raise Smack's source compatibility. Let's also use some of the "new" Java 7 features like "catch multiple".
This commit is contained in:
parent
18d0dbdc5f
commit
cc026a7e85
2 changed files with 2 additions and 6 deletions
|
@ -22,7 +22,7 @@ allprojects {
|
|||
oneLineDesc = 'An Open Source XMPP (Jabber) client library'
|
||||
}
|
||||
group = 'org.igniterealtime.smack'
|
||||
sourceCompatibility = 1.6
|
||||
sourceCompatibility = 1.7
|
||||
version = shortVersion
|
||||
if (isSnapshot) {
|
||||
version += '-SNAPSHOT'
|
||||
|
|
|
@ -574,11 +574,7 @@ public final class Socks5BytestreamManager implements BytestreamManager {
|
|||
try {
|
||||
proxyInfo = serviceDiscoveryManager.discoverInfo(item.getEntityID());
|
||||
}
|
||||
catch (NoResponseException e) {
|
||||
// blacklist errornous server
|
||||
proxyBlacklist.add(item.getEntityID());
|
||||
continue; }
|
||||
catch (XMPPErrorException e) {
|
||||
catch (NoResponseException|XMPPErrorException e) {
|
||||
// blacklist errornous server
|
||||
proxyBlacklist.add(item.getEntityID());
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue