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
|
@ -388,6 +388,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
|
|||
*
|
||||
* @param configuration The configuration which is used to establish the connection.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
protected AbstractXMPPConnection(ConnectionConfiguration configuration) {
|
||||
saslAuthentication = new SASLAuthentication(this, configuration);
|
||||
config = configuration;
|
||||
|
|
|
@ -672,6 +672,7 @@ public abstract class ConnectionConfiguration {
|
|||
private boolean compressionEnabled = false;
|
||||
private StanzaIdSourceFactory stanzaIdSourceFactory = new StandardStanzaIdSource.Factory();
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
protected Builder() {
|
||||
if (SmackConfiguration.DEBUG) {
|
||||
enableDefaultDebugger();
|
||||
|
|
|
@ -658,6 +658,7 @@ public final class ModularXmppClientToServerConnection extends AbstractXMPPConne
|
|||
updateOutgoingStreamXmlEnvironmentOnStreamOpen(streamOpen);
|
||||
}
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public static class DisconnectedStateDescriptor extends StateDescriptor {
|
||||
protected DisconnectedStateDescriptor() {
|
||||
super(DisconnectedState.class, StateDescriptor.Property.finalState);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright © 2014-2023 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.
|
||||
|
@ -23,6 +23,7 @@ public class EmptyResultIQ extends IQ {
|
|||
}
|
||||
|
||||
// TODO: Deprecate when stanza builder and parsing logic is ready.
|
||||
@SuppressWarnings("this-escape")
|
||||
public EmptyResultIQ() {
|
||||
super((String) null, null);
|
||||
setType(IQ.Type.result);
|
||||
|
|
|
@ -88,7 +88,7 @@ public abstract class IQ extends Stanza implements IqView {
|
|||
}
|
||||
|
||||
@Override
|
||||
public Type getType() {
|
||||
public final Type getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@ public class Session extends SimpleIQ {
|
|||
public static final String ELEMENT = "session";
|
||||
public static final String NAMESPACE = "urn:ietf:params:xml:ns:xmpp-session";
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public Session() {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
setType(IQ.Type.set);
|
||||
|
|
|
@ -203,7 +203,7 @@ public abstract class Stanza implements StanzaView, TopLevelStreamElement {
|
|||
* @param to who the packet is being sent to.
|
||||
*/
|
||||
// TODO: Mark this as deprecated once StanzaBuilder is ready and all call sites are gone.
|
||||
public void setTo(Jid to) {
|
||||
public final void setTo(Jid to) {
|
||||
this.to = to;
|
||||
}
|
||||
|
||||
|
|
|
@ -41,6 +41,7 @@ public class ProxyInfo {
|
|||
private ProxyType proxyType;
|
||||
private final ProxySocketConnection proxySocketConnection;
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public ProxyInfo(ProxyType pType, String pHost, int pPort, String pUser,
|
||||
String pPass) {
|
||||
this.proxyType = pType;
|
||||
|
|
|
@ -47,6 +47,7 @@ public class XmlStringBuilder implements Appendable, CharSequence, Element {
|
|||
this(pe, null);
|
||||
}
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public XmlStringBuilder(NamedElement e) {
|
||||
this();
|
||||
halfOpenElement(e.getElementName());
|
||||
|
@ -56,6 +57,7 @@ public class XmlStringBuilder implements Appendable, CharSequence, Element {
|
|||
this(element.getElementName(), element.getNamespace(), element.getLanguage(), enclosingXmlEnvironment);
|
||||
}
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public XmlStringBuilder(String elementName, String xmlNs, String xmlLang, XmlEnvironment enclosingXmlEnvironment) {
|
||||
sb = new LazyStringBuilder();
|
||||
halfOpenElement(elementName);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright 2010 Jive Software, 2022 Florian Schmaus.
|
||||
* Copyright 2010 Jive Software, 2022-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.
|
||||
|
@ -82,6 +82,7 @@ public class DummyConnection extends AbstractXMPPConnection {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public DummyConnection(DummyConnectionConfiguration configuration) {
|
||||
super(configuration);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue