1
0
Fork 0
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:
Florian Schmaus 2014-03-23 23:12:15 +01:00
parent 18d0dbdc5f
commit cc026a7e85
2 changed files with 2 additions and 6 deletions

View file

@ -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'

View file

@ -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;