mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 00:59: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
|
@ -51,6 +51,7 @@ public class BlockContactsIQ extends IQ {
|
|||
*
|
||||
* @param jids TODO javadoc me please
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public BlockContactsIQ(List<Jid> jids) {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
this.setType(Type.set);
|
||||
|
|
|
@ -52,6 +52,7 @@ public class UnblockContactsIQ extends IQ {
|
|||
*
|
||||
* @param jids TODO javadoc me please
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public UnblockContactsIQ(List<Jid> jids) {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
this.setType(Type.set);
|
||||
|
|
|
@ -36,6 +36,7 @@ public class Close extends IQ {
|
|||
*
|
||||
* @param sessionID unique session ID identifying this In-Band Bytestream
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public Close(String sessionID) {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
if (sessionID == null || "".equals(sessionID)) {
|
||||
|
|
|
@ -34,6 +34,7 @@ public class Data extends IQ {
|
|||
*
|
||||
* @param data data stanza extension containing the encoded data
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public Data(DataPacketExtension data) {
|
||||
super(DataPacketExtension.ELEMENT, DataPacketExtension.NAMESPACE);
|
||||
if (data == null) {
|
||||
|
|
|
@ -54,6 +54,7 @@ public class Open extends IQ {
|
|||
* @param blockSize block size in which the data will be fragmented
|
||||
* @param stanza stanza type used to encapsulate the data
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public Open(String sessionID, int blockSize, StanzaType stanza) {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
if (sessionID == null || "".equals(sessionID)) {
|
||||
|
|
|
@ -149,6 +149,7 @@ public class Socks5Proxy {
|
|||
*
|
||||
* @param serverSocket the server socket to use
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
protected Socks5Proxy(ServerSocket serverSocket) {
|
||||
this.serverProcess = new Socks5ServerProcess();
|
||||
this.serverSocket = serverSocket;
|
||||
|
|
|
@ -68,6 +68,7 @@ public class Bytestream extends IQ {
|
|||
* @param SID The session ID related to the negotiation.
|
||||
* @see #setSessionID(String)
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public Bytestream(final String SID) {
|
||||
this();
|
||||
setSessionID(SID);
|
||||
|
|
|
@ -57,6 +57,7 @@ public abstract class AdHocCommandHandler extends AbstractAdHocCommand {
|
|||
*/
|
||||
private int currentStage;
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public AdHocCommandHandler(String node, String name, String sessionId) {
|
||||
super(node, name);
|
||||
setSessionId(sessionId);
|
||||
|
|
|
@ -45,11 +45,13 @@ public class LastActivity extends IQ {
|
|||
public long lastActivity = -1;
|
||||
public String message;
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public LastActivity() {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
setType(IQ.Type.get);
|
||||
}
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public LastActivity(Jid to) {
|
||||
this();
|
||||
setTo(to);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright © 2014 Florian Schmaus
|
||||
* Copyright 2014-2024 Florian Schmaus
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -27,11 +27,13 @@ public class PrivateDataIQ extends IQ {
|
|||
private final String getElement;
|
||||
private final String getNamespace;
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public PrivateDataIQ(PrivateData privateData) {
|
||||
this(privateData, null, null);
|
||||
setType(Type.set);
|
||||
}
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public PrivateDataIQ(String element, String namespace) {
|
||||
this(null, element, namespace);
|
||||
setType(Type.get);
|
||||
|
|
|
@ -30,6 +30,7 @@ public abstract class JingleTransportManager<D extends JingleContentTransport> i
|
|||
|
||||
private final XMPPConnection connection;
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public JingleTransportManager(XMPPConnection connection) {
|
||||
this.connection = connection;
|
||||
connection.addConnectionListener(this);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright 2012-2019 Florian Schmaus
|
||||
* Copyright 2012-2024 Florian Schmaus
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -32,6 +32,7 @@ public class Ping extends SimpleIQ {
|
|||
super(ELEMENT, NAMESPACE);
|
||||
}
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public Ping(Jid to) {
|
||||
this();
|
||||
setTo(to);
|
||||
|
|
|
@ -43,6 +43,7 @@ public class PubSub extends IQ {
|
|||
super(ELEMENT, ns.getXmlns());
|
||||
}
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public PubSub(Jid to, Type type, PubSubNamespace ns) {
|
||||
super(ELEMENT, (ns == null ? PubSubNamespace.basic : ns).getXmlns());
|
||||
setTo(to);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright 2003-2007 Jive Software, 2014-2021 Florian Schmaus
|
||||
* Copyright 2003-2007 Jive Software, 2014-2024 Florian Schmaus
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -46,6 +46,7 @@ public class Time extends IQ implements TimeView {
|
|||
private final String utc;
|
||||
private final String tzo;
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public Time(TimeBuilder timeBuilder) {
|
||||
super(timeBuilder, ELEMENT, NAMESPACE);
|
||||
utc = timeBuilder.getUtc();
|
||||
|
|
|
@ -49,6 +49,7 @@ public class FillableForm extends FilledForm {
|
|||
|
||||
private final Map<String, FormField> filledFields = new HashMap<>();
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public FillableForm(DataForm dataForm) {
|
||||
super(dataForm);
|
||||
if (dataForm.getType() != DataForm.Type.form) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue