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
|
@ -43,6 +43,7 @@ public class JMFInit extends Frame implements Runnable {
|
|||
|
||||
private boolean visible = false;
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public JMFInit(String[] args, boolean visible) {
|
||||
super("Initializing JMF...");
|
||||
|
||||
|
|
|
@ -53,6 +53,7 @@ public class AudioMediaSession extends JingleMediaSession {
|
|||
* @param locator media locator
|
||||
* @param jingleSession the jingle session.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public AudioMediaSession(final PayloadType payloadType, final TransportCandidate remote,
|
||||
final TransportCandidate local, String locator, JingleSession jingleSession) {
|
||||
super(payloadType, remote, local, locator == null ? "dsound://" : locator, jingleSession);
|
||||
|
|
|
@ -104,6 +104,7 @@ public class AudioMediaSession extends JingleMediaSession implements MediaSessio
|
|||
* @param locator media locator
|
||||
* @param jingleSession the jingle session.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public AudioMediaSession(final PayloadType payloadType, final TransportCandidate remote,
|
||||
final TransportCandidate local, String locator, JingleSession jingleSession) {
|
||||
super(payloadType, remote, local, locator == null ? "dsound://" : locator, jingleSession);
|
||||
|
|
|
@ -66,6 +66,7 @@ public class ScreenShareSession extends JingleMediaSession {
|
|||
* @param locator media locator
|
||||
* @param jingleSession the jingle session.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public ScreenShareSession(final PayloadType payloadType, final TransportCandidate remote, final TransportCandidate local,
|
||||
final String locator, JingleSession jingleSession) {
|
||||
super(payloadType, remote, local, "Screen", jingleSession);
|
||||
|
|
|
@ -48,6 +48,7 @@ public class ImageReceiver extends Canvas {
|
|||
private int remotePort;
|
||||
private ImageDecoder decoder;
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public ImageReceiver(final InetAddress remoteHost, final int remotePort, final int localPort, int width, int height) {
|
||||
tiles = new BufferedImage[width][height];
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ public class OctTreeQuantizer implements Quantizer {
|
|||
private int colors = 0;
|
||||
private final List<Vector<OctTreeNode>> colorList;
|
||||
|
||||
@SuppressWarnings("JdkObsolete")
|
||||
@SuppressWarnings({"JdkObsolete", "this-escape"})
|
||||
public OctTreeQuantizer() {
|
||||
setup(256);
|
||||
colorList = new ArrayList<>(MAX_LEVEL + 1);
|
||||
|
|
|
@ -37,6 +37,7 @@ public class TestMediaSession extends JingleMediaSession {
|
|||
* @param locator media locator
|
||||
* @param jingleSession the jingle session.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public TestMediaSession(final PayloadType payloadType, final TransportCandidate remote, final TransportCandidate local,
|
||||
final String locator, JingleSession jingleSession) {
|
||||
super(payloadType, remote, local, "Test", jingleSession);
|
||||
|
|
|
@ -38,6 +38,7 @@ public class FixedResolver extends TransportResolver {
|
|||
* @param ip the IP address.
|
||||
* @param port the port number.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public FixedResolver(String ip, int port) {
|
||||
super();
|
||||
setFixedCandidate(ip, port);
|
||||
|
|
|
@ -56,6 +56,7 @@ public class ICEResolver extends TransportResolver {
|
|||
static Map<String, ICENegociator> negociatorsMap = new HashMap<>();
|
||||
// ICENegociator iceNegociator = null;
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public ICEResolver(XMPPConnection connection, String server, int port) {
|
||||
super();
|
||||
this.connection = connection;
|
||||
|
|
|
@ -45,6 +45,7 @@ public class TcpUdpBridgeClient {
|
|||
private DatagramSocket localUdpSocket;
|
||||
private Socket localTcpSocket;
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public TcpUdpBridgeClient(String remoteTcpHost, String remoteUdpHost, int remoteTcpPort, int remoteUdpPort) {
|
||||
this.remoteTcpHost = remoteTcpHost;
|
||||
this.remoteUdpHost = remoteUdpHost;
|
||||
|
|
|
@ -48,6 +48,7 @@ public class TcpUdpBridgeServer {
|
|||
private Socket localTcpSocket;
|
||||
private ServerSocket serverTcpSocket;
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public TcpUdpBridgeServer(String remoteTcpHost, String remoteUdpHost, int remoteTcpPort, int remoteUdpPort) {
|
||||
this.remoteTcpHost = remoteTcpHost;
|
||||
this.remoteUdpHost = remoteUdpHost;
|
||||
|
|
|
@ -71,6 +71,7 @@ public class Jingle extends IQ {
|
|||
* @param mi the jingle content info
|
||||
* @param sid the sid.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public Jingle(final List<JingleContent> contents, final JingleContentInfo mi,
|
||||
final String sid) {
|
||||
this();
|
||||
|
@ -93,6 +94,7 @@ public class Jingle extends IQ {
|
|||
*
|
||||
* @param content a content
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public Jingle(final JingleContent content) {
|
||||
this();
|
||||
|
||||
|
@ -112,6 +114,7 @@ public class Jingle extends IQ {
|
|||
*
|
||||
* @param info The content info
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public Jingle(final JingleContentInfo info) {
|
||||
this();
|
||||
|
||||
|
@ -131,6 +134,7 @@ public class Jingle extends IQ {
|
|||
*
|
||||
* @param action The action.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public Jingle(final JingleActionEnum action) {
|
||||
this(null, null, null);
|
||||
this.action = action;
|
||||
|
|
|
@ -184,6 +184,7 @@ public abstract class JingleContentDescription implements ExtensionElement {
|
|||
*
|
||||
* @param pt the payload type.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public Audio(final JinglePayloadType pt) {
|
||||
super();
|
||||
addJinglePayloadType(pt);
|
||||
|
|
|
@ -99,6 +99,7 @@ public class JingleContentInfo implements ExtensionElement {
|
|||
|
||||
public static final String NAMESPACE = "urn:xmpp:tmp:jingle:apps:rtp";
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public Audio(final ContentInfo mi) {
|
||||
super(mi);
|
||||
setNamespace(NAMESPACE);
|
||||
|
|
|
@ -191,6 +191,7 @@ public abstract class JingleDescription implements ExtensionElement {
|
|||
*
|
||||
* @param pt the payload type.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public Audio(final PayloadType pt) {
|
||||
super();
|
||||
addPayloadType(pt);
|
||||
|
|
|
@ -55,6 +55,7 @@ public class JingleTransport implements ExtensionElement {
|
|||
*
|
||||
* @param candidate A transport candidate element to add.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public JingleTransport(final JingleTransportCandidate candidate) {
|
||||
super();
|
||||
addCandidate(candidate);
|
||||
|
@ -202,6 +203,7 @@ public class JingleTransport implements ExtensionElement {
|
|||
*
|
||||
* @param candidate the jmf transport candidate
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public JingleTransportCandidate(final TransportCandidate candidate) {
|
||||
super();
|
||||
setMediaTransport(candidate);
|
||||
|
@ -272,6 +274,7 @@ public class JingleTransport implements ExtensionElement {
|
|||
public static class Ice extends JingleTransport {
|
||||
public static final String NAMESPACE = "urn:xmpp:tmp:jingle:transports:ice-udp";
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public Ice() {
|
||||
super();
|
||||
setNamespace(NAMESPACE);
|
||||
|
@ -359,6 +362,7 @@ public class JingleTransport implements ExtensionElement {
|
|||
public static class RawUdp extends JingleTransport {
|
||||
public static final String NAMESPACE = "http://www.xmpp.org/extensions/xep-0177.html#ns";
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public RawUdp() {
|
||||
super();
|
||||
setNamespace(NAMESPACE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue