mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
[github ci] Build also with Java 21
This commit is contained in:
parent
348a3ab091
commit
2eddf1949a
72 changed files with 99 additions and 17 deletions
|
@ -53,6 +53,7 @@ public class DepartQueuePacket extends IQ {
|
|||
* @param workgroup the workgroup to depart.
|
||||
* @param user the user to make depart from the queue.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public DepartQueuePacket(EntityBareJid workgroup, EntityJid user) {
|
||||
super("depart-queue", "http://jabber.org/protocol/workgroup");
|
||||
this.user = user;
|
||||
|
|
|
@ -22,6 +22,7 @@ public class ChatSetting {
|
|||
private String value;
|
||||
private int type;
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public ChatSetting(String key, String value, int type) {
|
||||
setKey(key);
|
||||
setValue(value);
|
||||
|
|
|
@ -66,6 +66,7 @@ public class ChatSettings extends IQ {
|
|||
settings = new ArrayList<>();
|
||||
}
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public ChatSettings(String key) {
|
||||
this();
|
||||
setKey(key);
|
||||
|
|
|
@ -99,6 +99,7 @@ public class Workgroup {
|
|||
* @param connection an XMPP connection which must have already undergone a
|
||||
* successful login.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public Workgroup(EntityBareJid workgroupJID, XMPPConnection connection) {
|
||||
// Login must have been done before passing in connection.
|
||||
if (!connection.isAuthenticated()) {
|
||||
|
|
|
@ -70,6 +70,7 @@ public class RosterExchange implements ExtensionElement {
|
|||
*
|
||||
* @param roster the roster to send to other XMPP entity.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public RosterExchange(Roster roster) {
|
||||
// Add all the roster entries to the new RosterExchange
|
||||
for (RosterEntry rosterEntry : roster.getEntries()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue