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
|
@ -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,6 +27,7 @@ public class Carbon {
|
|||
public static class Enable extends SimpleIQ {
|
||||
public static final String ELEMENT = "enable";
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public Enable() {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
setType(Type.set);
|
||||
|
@ -37,6 +38,7 @@ public class Carbon {
|
|||
public static class Disable extends SimpleIQ {
|
||||
public static final String ELEMENT = "disable";
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public Disable() {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
setType(Type.set);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright 2019 Florian Schmaus
|
||||
* Copyright 2019-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.
|
||||
|
@ -43,6 +43,7 @@ public class DnsIq extends IQ {
|
|||
this(new DnsMessage(dnsMessage));
|
||||
}
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public DnsIq(DnsMessage dnsQuery, Jid to) {
|
||||
this(dnsQuery);
|
||||
setTo(to);
|
||||
|
|
|
@ -46,6 +46,7 @@ public class Slot extends IQ {
|
|||
this(putUrl, getUrl, headers, NAMESPACE);
|
||||
}
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
protected Slot(URL putUrl, URL getUrl, Map<String, String> headers, String namespace) {
|
||||
super(ELEMENT, namespace);
|
||||
setType(Type.result);
|
||||
|
|
|
@ -53,6 +53,7 @@ public class SlotRequest extends IQ {
|
|||
this(uploadServiceAddress, filename, size, contentType, NAMESPACE);
|
||||
}
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
protected SlotRequest(DomainBareJid uploadServiceAddress, String filename, long size, String contentType, String namespace) {
|
||||
super(ELEMENT, namespace);
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright © 2016-2017 Florian Schmaus
|
||||
* Copyright © 2016-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.
|
||||
|
@ -29,6 +29,7 @@ public class IoTSetRequest extends IQ {
|
|||
|
||||
private final Collection<SetData> setData;
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public IoTSetRequest(Collection<? extends SetData> setData) {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
setType(Type.set);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright © 2016 Florian Schmaus
|
||||
* Copyright © 2016-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.
|
||||
|
@ -30,6 +30,7 @@ public class IoTDataReadOutAccepted extends IQ {
|
|||
|
||||
private final boolean queued;
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public IoTDataReadOutAccepted(int seqNr, boolean queued) {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
this.seqNr = seqNr;
|
||||
|
@ -37,6 +38,7 @@ public class IoTDataReadOutAccepted extends IQ {
|
|||
setType(Type.result);
|
||||
}
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public IoTDataReadOutAccepted(IoTDataRequest dataRequest) {
|
||||
this(dataRequest.getSequenceNr(), false);
|
||||
setStanzaId(dataRequest.getStanzaId());
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright 2016 Florian Schmaus
|
||||
* Copyright 2016-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,6 +27,7 @@ public class IoTUnregister extends IQ {
|
|||
|
||||
private final NodeInfo nodeInfo;
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public IoTUnregister(NodeInfo nodeInfo) {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
this.nodeInfo = nodeInfo;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright © 2016 Florian Schmaus
|
||||
* Copyright © 2016-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.
|
||||
|
@ -23,6 +23,7 @@ public class ClearCache extends SimpleIQ {
|
|||
public static final String ELEMENT = "clearCache";
|
||||
public static final String NAMESPACE = Constants.IOT_PROVISIONING_NAMESPACE;
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public ClearCache() {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
// <clearCache/> IQs are always of type 'get' (XEP-0324 § 3.5.1, see also the XEPs history remarks)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright © 2016 Florian Schmaus
|
||||
* Copyright © 2016-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.
|
||||
|
@ -23,12 +23,14 @@ public class ClearCacheResponse extends SimpleIQ {
|
|||
public static final String ELEMENT = "clearCacheResponse";
|
||||
public static final String NAMESPACE = Constants.IOT_PROVISIONING_NAMESPACE;
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public ClearCacheResponse() {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
// <clearCacheResponse/> IQs are always of type 'result' (XEP-0324 § 3.5.1, see also the XEPs history remarks)
|
||||
setType(Type.result);
|
||||
}
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public ClearCacheResponse(ClearCache clearCacheRequest) {
|
||||
this();
|
||||
setStanzaId(clearCacheRequest.getStanzaId());
|
||||
|
|
|
@ -81,6 +81,7 @@ public class MamPrefsIQ extends IQ {
|
|||
* @param neverJids TODO javadoc me please
|
||||
* @param defaultBehavior TODO javadoc me please
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public MamPrefsIQ(MamVersion version, List<Jid> alwaysJids, List<Jid> neverJids, DefaultBehavior defaultBehavior) {
|
||||
super(ELEMENT, version.getNamespace());
|
||||
setType(Type.set);
|
||||
|
|
|
@ -45,6 +45,7 @@ public class MamQueryIQ extends IQ {
|
|||
* @param version TODO javadoc me please
|
||||
* @param queryId TODO javadoc me please
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public MamQueryIQ(MamVersion version, String queryId) {
|
||||
this(version, queryId, null, null);
|
||||
setType(IQ.Type.get);
|
||||
|
@ -79,6 +80,7 @@ public class MamQueryIQ extends IQ {
|
|||
* @param node TODO javadoc me please
|
||||
* @param dataForm TODO javadoc me please
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public MamQueryIQ(MamVersion version, String queryId, String node, DataForm dataForm) {
|
||||
super(ELEMENT, version.getNamespace());
|
||||
this.queryId = queryId;
|
||||
|
|
|
@ -48,6 +48,7 @@ public class MUCLightAffiliationsIQ extends IQ {
|
|||
* @param version TODO javadoc me please
|
||||
* @param affiliations TODO javadoc me please
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public MUCLightAffiliationsIQ(String version, HashMap<Jid, MUCLightAffiliation> affiliations) {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
this.version = version;
|
||||
|
|
|
@ -47,6 +47,7 @@ public class MUCLightChangeAffiliationsIQ extends IQ {
|
|||
* @param room TODO javadoc me please
|
||||
* @param affiliations TODO javadoc me please
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public MUCLightChangeAffiliationsIQ(Jid room, HashMap<Jid, MUCLightAffiliation> affiliations) {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
this.setType(Type.set);
|
||||
|
|
|
@ -53,6 +53,7 @@ public class MUCLightCreateIQ extends IQ {
|
|||
* @param customConfigs TODO javadoc me please
|
||||
* @param occupants TODO javadoc me please
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public MUCLightCreateIQ(EntityJid room, String roomName, String subject, HashMap<String, String> customConfigs,
|
||||
List<Jid> occupants) {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
|
|
|
@ -38,6 +38,7 @@ public class MUCLightDestroyIQ extends IQ {
|
|||
*
|
||||
* @param roomJid TODO javadoc me please
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public MUCLightDestroyIQ(Jid roomJid) {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
this.setType(Type.set);
|
||||
|
|
|
@ -41,6 +41,7 @@ public class MUCLightGetAffiliationsIQ extends IQ {
|
|||
* @param roomJid TODO javadoc me please
|
||||
* @param version TODO javadoc me please
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public MUCLightGetAffiliationsIQ(Jid roomJid, String version) {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
this.version = version;
|
||||
|
|
|
@ -41,6 +41,7 @@ public class MUCLightGetConfigsIQ extends IQ {
|
|||
* @param roomJid TODO javadoc me please
|
||||
* @param version TODO javadoc me please
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public MUCLightGetConfigsIQ(Jid roomJid, String version) {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
this.version = version;
|
||||
|
|
|
@ -41,6 +41,7 @@ public class MUCLightGetInfoIQ extends IQ {
|
|||
* @param roomJid TODO javadoc me please
|
||||
* @param version TODO javadoc me please
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public MUCLightGetInfoIQ(Jid roomJid, String version) {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
this.version = version;
|
||||
|
|
|
@ -49,6 +49,7 @@ public class MUCLightSetConfigsIQ extends IQ {
|
|||
* @param subject TODO javadoc me please
|
||||
* @param customConfigs TODO javadoc me please
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public MUCLightSetConfigsIQ(Jid roomJid, String roomName, String subject, HashMap<String, String> customConfigs) {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
this.roomName = roomName;
|
||||
|
|
|
@ -43,6 +43,7 @@ public class DisablePushNotificationsIQ extends IQ {
|
|||
private final Jid jid;
|
||||
private final String node;
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public DisablePushNotificationsIQ(Jid jid, String node) {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
this.jid = jid;
|
||||
|
|
|
@ -53,6 +53,7 @@ public class EnablePushNotificationsIQ extends IQ {
|
|||
private final String node;
|
||||
private final HashMap<String, String> publishOptions;
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public EnablePushNotificationsIQ(Jid jid, String node, HashMap<String, String> publishOptions) {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
this.jid = jid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue