1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 12:02:05 +01:00

Set Java source and target compatibility to Java 8

Fixes SMACK-801.
This commit is contained in:
Florian Schmaus 2018-02-10 14:11:27 +01:00
parent 5333bde2e8
commit d6be4a7782
2 changed files with 2 additions and 53 deletions

View file

@ -96,7 +96,7 @@ allprojects {
junitVersion = '4.11' junitVersion = '4.11'
} }
group = 'org.igniterealtime.smack' group = 'org.igniterealtime.smack'
sourceCompatibility = 1.7 sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = sourceCompatibility targetCompatibility = sourceCompatibility
version = shortVersion version = shortVersion
if (isSnapshot) { if (isSnapshot) {

View file

@ -1,6 +1,6 @@
/** /**
* *
* Copyright 2017 Florian Schmaus. * Copyright 2017-2018 Florian Schmaus.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -55,7 +55,6 @@ import org.jxmpp.jid.Jid;
* *
* @see <a href="https://xmpp.org/extensions/xep-0296.html">XEP-0296: Best Practices for Resource Locking</a> * @see <a href="https://xmpp.org/extensions/xep-0296.html">XEP-0296: Best Practices for Resource Locking</a>
*/ */
@SuppressWarnings("FunctionalInterfaceClash")
public final class ChatManager extends Manager { public final class ChatManager extends Manager {
private static final Map<XMPPConnection, ChatManager> INSTANCES = new WeakHashMap<>(); private static final Map<XMPPConnection, ChatManager> INSTANCES = new WeakHashMap<>();
@ -201,31 +200,6 @@ public final class ChatManager extends Manager {
return incomingListeners.add(listener); return incomingListeners.add(listener);
} }
/**
* Add a new listener for incoming chat messages.
*
* @param listener the listener to add.
* @return <code>true</code> if the listener was not already added.
*/
@Deprecated
@SuppressWarnings("FunctionalInterfaceClash")
public boolean addListener(IncomingChatMessageListener listener) {
return addIncomingListener(listener);
}
/**
* Remove an incoming chat message listener.
*
* @param listener the listener to remove.
* @return <code>true</code> if the listener was active and got removed.
* @deprecated Use {@link #removeIncomingListener(IncomingChatMessageListener)} instead.
*/
@Deprecated
@SuppressWarnings("FunctionalInterfaceClash")
public boolean removeListener(IncomingChatMessageListener listener) {
return incomingListeners.remove(listener);
}
/** /**
* Remove an incoming chat message listener. * Remove an incoming chat message listener.
* *
@ -246,31 +220,6 @@ public final class ChatManager extends Manager {
return outgoingListeners.add(listener); return outgoingListeners.add(listener);
} }
/**
* Add a new listener for incoming chat messages.
*
* @param listener the listener to add.
* @return <code>true</code> if the listener was not already added.
* @deprecated use {@link #addOutgoingListener(OutgoingChatMessageListener)} instead.
*/
@Deprecated
@SuppressWarnings("FunctionalInterfaceClash")
public boolean addListener(OutgoingChatMessageListener listener) {
return addOutgoingListener(listener);
}
/**
* Remove an outgoing chat message listener.
*
* @param listener the listener to remove.
* @return <code>true</code> if the listener was active and got removed.
* @deprecated use {@link #removeOutgoingListener(OutgoingChatMessageListener)} instead.
*/
@Deprecated
public boolean removeListener(OutgoingChatMessageListener listener) {
return removeOutgoingListener(listener);
}
/** /**
* Remove an outgoing chat message listener. * Remove an outgoing chat message listener.
* *