From 53a3999ce818dcdcf02cfa2981d62e6ba7fd20c1 Mon Sep 17 00:00:00 2001 From: Chris Tankersley Date: Mon, 4 May 2026 10:36:16 -0400 Subject: [PATCH 1/7] chore: Update license headers to 2026 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/main/java/com/opentok/Archive.java | 4 ++-- src/main/java/com/opentok/ArchiveLayout.java | 4 ++-- src/main/java/com/opentok/ArchiveList.java | 4 ++-- src/main/java/com/opentok/ArchiveMode.java | 4 ++-- src/main/java/com/opentok/ArchiveProperties.java | 4 ++-- src/main/java/com/opentok/AudioConnector.java | 4 ++-- src/main/java/com/opentok/AudioConnectorProperties.java | 4 ++-- src/main/java/com/opentok/Broadcast.java | 4 ++-- src/main/java/com/opentok/BroadcastLayout.java | 4 ++-- src/main/java/com/opentok/BroadcastProperties.java | 4 ++-- src/main/java/com/opentok/Caption.java | 4 ++-- src/main/java/com/opentok/CaptionProperties.java | 4 ++-- src/main/java/com/opentok/CreatedSession.java | 4 ++-- src/main/java/com/opentok/Hls.java | 4 ++-- src/main/java/com/opentok/MediaMode.java | 4 ++-- src/main/java/com/opentok/MuteAllProperties.java | 4 ++-- src/main/java/com/opentok/OpenTok.java | 4 ++-- src/main/java/com/opentok/Render.java | 4 ++-- src/main/java/com/opentok/RenderProperties.java | 4 ++-- src/main/java/com/opentok/RenderStatus.java | 4 ++-- src/main/java/com/opentok/Resolution.java | 4 ++-- src/main/java/com/opentok/Role.java | 4 ++-- src/main/java/com/opentok/Rtmp.java | 4 ++-- src/main/java/com/opentok/RtmpProperties.java | 4 ++-- src/main/java/com/opentok/ScreenShareLayoutType.java | 4 ++-- src/main/java/com/opentok/Session.java | 4 ++-- src/main/java/com/opentok/SessionProperties.java | 4 ++-- src/main/java/com/opentok/SignalProperties.java | 4 ++-- src/main/java/com/opentok/Sip.java | 4 ++-- src/main/java/com/opentok/SipProperties.java | 4 ++-- src/main/java/com/opentok/Stream.java | 4 ++-- src/main/java/com/opentok/StreamList.java | 4 ++-- src/main/java/com/opentok/StreamListProperties.java | 4 ++-- src/main/java/com/opentok/StreamProperties.java | 4 ++-- src/main/java/com/opentok/TokenOptions.java | 4 ++-- src/main/java/com/opentok/constants/DefaultApiUrl.java | 4 ++-- src/main/java/com/opentok/constants/DefaultUserAgent.java | 4 ++-- src/main/java/com/opentok/constants/Version.java | 4 ++-- src/main/java/com/opentok/constants/package-info.java | 4 ++-- .../java/com/opentok/exception/InvalidArgumentException.java | 4 ++-- src/main/java/com/opentok/exception/OpenTokException.java | 4 ++-- src/main/java/com/opentok/exception/RequestException.java | 4 ++-- src/main/java/com/opentok/exception/package-info.java | 4 ++-- src/main/java/com/opentok/package-info.java | 4 ++-- src/main/java/com/opentok/util/Crypto.java | 4 ++-- src/main/java/com/opentok/util/HttpClient.java | 4 ++-- src/main/java/com/opentok/util/TokenGenerator.java | 4 ++-- 47 files changed, 94 insertions(+), 94 deletions(-) diff --git a/src/main/java/com/opentok/Archive.java b/src/main/java/com/opentok/Archive.java index 9f2251bb..8009907c 100644 --- a/src/main/java/com/opentok/Archive.java +++ b/src/main/java/com/opentok/Archive.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/ArchiveLayout.java b/src/main/java/com/opentok/ArchiveLayout.java index 683d2ed0..882154ae 100644 --- a/src/main/java/com/opentok/ArchiveLayout.java +++ b/src/main/java/com/opentok/ArchiveLayout.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/ArchiveList.java b/src/main/java/com/opentok/ArchiveList.java index d6d9f72e..9da0c0f0 100644 --- a/src/main/java/com/opentok/ArchiveList.java +++ b/src/main/java/com/opentok/ArchiveList.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/ArchiveMode.java b/src/main/java/com/opentok/ArchiveMode.java index a40c7a0b..d312ad3e 100644 --- a/src/main/java/com/opentok/ArchiveMode.java +++ b/src/main/java/com/opentok/ArchiveMode.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/ArchiveProperties.java b/src/main/java/com/opentok/ArchiveProperties.java index fbb5e13e..92f63e29 100644 --- a/src/main/java/com/opentok/ArchiveProperties.java +++ b/src/main/java/com/opentok/ArchiveProperties.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/AudioConnector.java b/src/main/java/com/opentok/AudioConnector.java index a79ecfbb..1458c574 100644 --- a/src/main/java/com/opentok/AudioConnector.java +++ b/src/main/java/com/opentok/AudioConnector.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/AudioConnectorProperties.java b/src/main/java/com/opentok/AudioConnectorProperties.java index eb02e987..411032c8 100644 --- a/src/main/java/com/opentok/AudioConnectorProperties.java +++ b/src/main/java/com/opentok/AudioConnectorProperties.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/Broadcast.java b/src/main/java/com/opentok/Broadcast.java index b7c7e27b..1f8bfd3a 100644 --- a/src/main/java/com/opentok/Broadcast.java +++ b/src/main/java/com/opentok/Broadcast.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/BroadcastLayout.java b/src/main/java/com/opentok/BroadcastLayout.java index 6cece6f4..6eb42d63 100644 --- a/src/main/java/com/opentok/BroadcastLayout.java +++ b/src/main/java/com/opentok/BroadcastLayout.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/BroadcastProperties.java b/src/main/java/com/opentok/BroadcastProperties.java index 92d43f4e..6dcd92ed 100644 --- a/src/main/java/com/opentok/BroadcastProperties.java +++ b/src/main/java/com/opentok/BroadcastProperties.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/Caption.java b/src/main/java/com/opentok/Caption.java index 7c50f0fd..c6ae6325 100644 --- a/src/main/java/com/opentok/Caption.java +++ b/src/main/java/com/opentok/Caption.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/CaptionProperties.java b/src/main/java/com/opentok/CaptionProperties.java index 71b51b62..d9012daa 100644 --- a/src/main/java/com/opentok/CaptionProperties.java +++ b/src/main/java/com/opentok/CaptionProperties.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/CreatedSession.java b/src/main/java/com/opentok/CreatedSession.java index 2b829a1c..8e44d583 100644 --- a/src/main/java/com/opentok/CreatedSession.java +++ b/src/main/java/com/opentok/CreatedSession.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/Hls.java b/src/main/java/com/opentok/Hls.java index 240af90a..c79a1330 100644 --- a/src/main/java/com/opentok/Hls.java +++ b/src/main/java/com/opentok/Hls.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/MediaMode.java b/src/main/java/com/opentok/MediaMode.java index d4735c55..a1ba7fb5 100644 --- a/src/main/java/com/opentok/MediaMode.java +++ b/src/main/java/com/opentok/MediaMode.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/MuteAllProperties.java b/src/main/java/com/opentok/MuteAllProperties.java index 7776c2a9..a6ebfae8 100644 --- a/src/main/java/com/opentok/MuteAllProperties.java +++ b/src/main/java/com/opentok/MuteAllProperties.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/OpenTok.java b/src/main/java/com/opentok/OpenTok.java index 758205b3..f248ed48 100644 --- a/src/main/java/com/opentok/OpenTok.java +++ b/src/main/java/com/opentok/OpenTok.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/Render.java b/src/main/java/com/opentok/Render.java index 4c9e8003..af72c9f2 100644 --- a/src/main/java/com/opentok/Render.java +++ b/src/main/java/com/opentok/Render.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/RenderProperties.java b/src/main/java/com/opentok/RenderProperties.java index 92150e12..1ecedbae 100644 --- a/src/main/java/com/opentok/RenderProperties.java +++ b/src/main/java/com/opentok/RenderProperties.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/RenderStatus.java b/src/main/java/com/opentok/RenderStatus.java index d3e7ccbf..532c024a 100644 --- a/src/main/java/com/opentok/RenderStatus.java +++ b/src/main/java/com/opentok/RenderStatus.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/Resolution.java b/src/main/java/com/opentok/Resolution.java index 69e74f54..c3f35fbf 100644 --- a/src/main/java/com/opentok/Resolution.java +++ b/src/main/java/com/opentok/Resolution.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/Role.java b/src/main/java/com/opentok/Role.java index ae2a3e4d..8f9f0413 100644 --- a/src/main/java/com/opentok/Role.java +++ b/src/main/java/com/opentok/Role.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/Rtmp.java b/src/main/java/com/opentok/Rtmp.java index ff30946a..5b76cc7e 100644 --- a/src/main/java/com/opentok/Rtmp.java +++ b/src/main/java/com/opentok/Rtmp.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/RtmpProperties.java b/src/main/java/com/opentok/RtmpProperties.java index c8a200e5..5733b3b0 100644 --- a/src/main/java/com/opentok/RtmpProperties.java +++ b/src/main/java/com/opentok/RtmpProperties.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/ScreenShareLayoutType.java b/src/main/java/com/opentok/ScreenShareLayoutType.java index 5c3315a5..721cd1f2 100644 --- a/src/main/java/com/opentok/ScreenShareLayoutType.java +++ b/src/main/java/com/opentok/ScreenShareLayoutType.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/Session.java b/src/main/java/com/opentok/Session.java index 19581c73..d0f7bcb0 100644 --- a/src/main/java/com/opentok/Session.java +++ b/src/main/java/com/opentok/Session.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/SessionProperties.java b/src/main/java/com/opentok/SessionProperties.java index 6b0b0093..96de3e2d 100644 --- a/src/main/java/com/opentok/SessionProperties.java +++ b/src/main/java/com/opentok/SessionProperties.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/SignalProperties.java b/src/main/java/com/opentok/SignalProperties.java index 6e258c7d..647627af 100644 --- a/src/main/java/com/opentok/SignalProperties.java +++ b/src/main/java/com/opentok/SignalProperties.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/Sip.java b/src/main/java/com/opentok/Sip.java index 85635d86..65ea0ced 100644 --- a/src/main/java/com/opentok/Sip.java +++ b/src/main/java/com/opentok/Sip.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/SipProperties.java b/src/main/java/com/opentok/SipProperties.java index e9549e19..4bf53909 100644 --- a/src/main/java/com/opentok/SipProperties.java +++ b/src/main/java/com/opentok/SipProperties.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/Stream.java b/src/main/java/com/opentok/Stream.java index 600464d3..a117d583 100644 --- a/src/main/java/com/opentok/Stream.java +++ b/src/main/java/com/opentok/Stream.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/StreamList.java b/src/main/java/com/opentok/StreamList.java index 79d37492..2bf5d1af 100644 --- a/src/main/java/com/opentok/StreamList.java +++ b/src/main/java/com/opentok/StreamList.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/StreamListProperties.java b/src/main/java/com/opentok/StreamListProperties.java index d015226d..250b0c84 100644 --- a/src/main/java/com/opentok/StreamListProperties.java +++ b/src/main/java/com/opentok/StreamListProperties.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/StreamProperties.java b/src/main/java/com/opentok/StreamProperties.java index ccacfbc0..ec33006f 100644 --- a/src/main/java/com/opentok/StreamProperties.java +++ b/src/main/java/com/opentok/StreamProperties.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/TokenOptions.java b/src/main/java/com/opentok/TokenOptions.java index 51b92b13..a2e41316 100644 --- a/src/main/java/com/opentok/TokenOptions.java +++ b/src/main/java/com/opentok/TokenOptions.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/main/java/com/opentok/constants/DefaultApiUrl.java b/src/main/java/com/opentok/constants/DefaultApiUrl.java index 0f851ef0..3b3a4473 100644 --- a/src/main/java/com/opentok/constants/DefaultApiUrl.java +++ b/src/main/java/com/opentok/constants/DefaultApiUrl.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok.constants; diff --git a/src/main/java/com/opentok/constants/DefaultUserAgent.java b/src/main/java/com/opentok/constants/DefaultUserAgent.java index 64f10956..c1330283 100644 --- a/src/main/java/com/opentok/constants/DefaultUserAgent.java +++ b/src/main/java/com/opentok/constants/DefaultUserAgent.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok.constants; diff --git a/src/main/java/com/opentok/constants/Version.java b/src/main/java/com/opentok/constants/Version.java index d42ec4e5..5a70684c 100644 --- a/src/main/java/com/opentok/constants/Version.java +++ b/src/main/java/com/opentok/constants/Version.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok.constants; diff --git a/src/main/java/com/opentok/constants/package-info.java b/src/main/java/com/opentok/constants/package-info.java index f62e3aaf..ad6fb7e8 100644 --- a/src/main/java/com/opentok/constants/package-info.java +++ b/src/main/java/com/opentok/constants/package-info.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok.constants; diff --git a/src/main/java/com/opentok/exception/InvalidArgumentException.java b/src/main/java/com/opentok/exception/InvalidArgumentException.java index 0ea59db6..9c628aa6 100644 --- a/src/main/java/com/opentok/exception/InvalidArgumentException.java +++ b/src/main/java/com/opentok/exception/InvalidArgumentException.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok.exception; diff --git a/src/main/java/com/opentok/exception/OpenTokException.java b/src/main/java/com/opentok/exception/OpenTokException.java index 239ff6bb..86839124 100644 --- a/src/main/java/com/opentok/exception/OpenTokException.java +++ b/src/main/java/com/opentok/exception/OpenTokException.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok.exception; diff --git a/src/main/java/com/opentok/exception/RequestException.java b/src/main/java/com/opentok/exception/RequestException.java index b75c34e5..e99238c9 100644 --- a/src/main/java/com/opentok/exception/RequestException.java +++ b/src/main/java/com/opentok/exception/RequestException.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok.exception; diff --git a/src/main/java/com/opentok/exception/package-info.java b/src/main/java/com/opentok/exception/package-info.java index 1cfc1285..97490844 100644 --- a/src/main/java/com/opentok/exception/package-info.java +++ b/src/main/java/com/opentok/exception/package-info.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ /** diff --git a/src/main/java/com/opentok/package-info.java b/src/main/java/com/opentok/package-info.java index 3027a26c..29da95c1 100644 --- a/src/main/java/com/opentok/package-info.java +++ b/src/main/java/com/opentok/package-info.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ /** diff --git a/src/main/java/com/opentok/util/Crypto.java b/src/main/java/com/opentok/util/Crypto.java index 3ed446ee..b271e4d9 100644 --- a/src/main/java/com/opentok/util/Crypto.java +++ b/src/main/java/com/opentok/util/Crypto.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok.util; diff --git a/src/main/java/com/opentok/util/HttpClient.java b/src/main/java/com/opentok/util/HttpClient.java index 61f31ac0..75782ce5 100644 --- a/src/main/java/com/opentok/util/HttpClient.java +++ b/src/main/java/com/opentok/util/HttpClient.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok.util; diff --git a/src/main/java/com/opentok/util/TokenGenerator.java b/src/main/java/com/opentok/util/TokenGenerator.java index 6201016d..5135c2de 100644 --- a/src/main/java/com/opentok/util/TokenGenerator.java +++ b/src/main/java/com/opentok/util/TokenGenerator.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok.util; From 4ca8ad90b8ac25e97a413aa190b7cdd8855b3515 Mon Sep 17 00:00:00 2001 From: Chris Tankersley Date: Mon, 4 May 2026 10:37:59 -0400 Subject: [PATCH 2/7] chore: Update test license headers to 2026 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/test/java/com/opentok/OpenTokTest.java | 4 ++-- src/test/java/com/opentok/TestHelpers.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/com/opentok/OpenTokTest.java b/src/test/java/com/opentok/OpenTokTest.java index 07f7d593..11dfee0c 100644 --- a/src/test/java/com/opentok/OpenTokTest.java +++ b/src/test/java/com/opentok/OpenTokTest.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; diff --git a/src/test/java/com/opentok/TestHelpers.java b/src/test/java/com/opentok/TestHelpers.java index d7704102..6ad445e2 100644 --- a/src/test/java/com/opentok/TestHelpers.java +++ b/src/test/java/com/opentok/TestHelpers.java @@ -1,8 +1,8 @@ /** * OpenTok Java SDK - * Copyright (C) 2025 Vonage. + * Copyright (C) 2026 Vonage. * http://www.tokbox.com - * + * * Licensed under The MIT License (MIT). See LICENSE file for more information. */ package com.opentok; From 417c7542f68b2e5a99ecc678964b667a38fc4f7d Mon Sep 17 00:00:00 2001 From: Chris Tankersley Date: Mon, 4 May 2026 10:43:20 -0400 Subject: [PATCH 3/7] chore: Enforce Java 8 bytecode compatibility with --release 8 Gradle 9.x requires JVM 17+ to run but the SDK output must remain compatible with Java 8 runtimes. Using options.release = 8 on compileJava enforces both bytecode version and API compatibility against the Java 8 class library. Also documents the distinction between build JDK requirement (17+) and runtime support (Java 8+) in DEVELOPING.md. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- DEVELOPING.md | 9 +++++++++ build.gradle | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/DEVELOPING.md b/DEVELOPING.md index c604e9e7..96e103d1 100644 --- a/DEVELOPING.md +++ b/DEVELOPING.md @@ -10,6 +10,15 @@ this project. If you use this package within your own software as is but don't p do not have it already installed, you won't need to install it. The gradle wrapper is included in the project and you can invoke it using `./gradlew` substituted for `gradle`. +## Java Requirements + +* **Building** requires **Java 17 or later** (Gradle 9.x requires JVM 17+ to run). +* **Runtime support**: the compiled SDK JAR is compatible with **Java 8 and later** JREs. + +These are separate concerns. You can build with Java 17/21/25 and the output will run on Java 8+. +The `compileJava` task uses `--release 8`, which enforces both bytecode version and API compatibility +against the Java 8 class library, preventing accidental use of Java 9+ APIs. + ## Tasks ### Building diff --git a/build.gradle b/build.gradle index 07e355cf..974d1cfb 100644 --- a/build.gradle +++ b/build.gradle @@ -43,6 +43,13 @@ java { targetCompatibility = sourceCompatibility } +// Enforce strict Java 8 API compatibility: --release 8 checks both bytecode +// version and API usage against the Java 8 class library, catching accidental +// use of Java 9+ APIs at compile time. +compileJava { + options.release = 8 +} + compileTestJava { sourceCompatibility = JavaVersion.VERSION_21 targetCompatibility = sourceCompatibility From 2d66c722f080625039529d84bcac2b87cf44641c Mon Sep 17 00:00:00 2001 From: Chris Tankersley Date: Mon, 4 May 2026 10:46:27 -0400 Subject: [PATCH 4/7] ci: Install target JDK before Java 17 so Gradle 9 can start on all matrix versions Gradle 9.x requires JVM 17+ to run. The build_only matrix (8, 11, 17) now installs the target JDK first (for toolchain availability), then installs Java 17 to override JAVA_HOME so the wrapper can start. Source compatibility is enforced via options.release = 8 in build.gradle, ensuring the output bytecode is Java 8-compatible regardless of which JDK runs the build. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/build.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9ac9957b..4e7d6219 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,12 +31,24 @@ jobs: - name: Checkout the repo uses: actions/checkout@v4 - - name: Setup Java + # Install the target JDK first so Gradle's toolchain auto-detection can + # find it. This step sets JAVA_HOME__X64 env vars but does NOT + # set JAVA_HOME yet. + - name: Setup target JDK ${{ matrix.java }} uses: actions/setup-java@v4 with: java-version: ${{ matrix.java }} distribution: 'zulu' + # Gradle 9.x requires JVM 17+. This second setup-java call overrides + # JAVA_HOME to Java 17 so the wrapper can start, while the target JDK + # installed above remains available for toolchain-based compilation. + - name: Setup Java 17 to run Gradle + uses: actions/setup-java@v4 + with: + java-version: 17 + distribution: 'zulu' + - name: Grant execute permission for gradlew run: chmod +x gradlew From 8813a54e02aeea6b42089583a1276fce2ff663bf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 4 May 2026 15:18:20 +0000 Subject: [PATCH 5/7] chore: simplify build_only job by removing unused java matrix and redundant JDK step Agent-Logs-Url: https://github.com/opentok/Opentok-Java-SDK/sessions/6a3b098c-829e-47ee-9907-c7ed0295e319 Co-authored-by: dragonmantank <108948+dragonmantank@users.noreply.github.com> --- .github/workflows/build.yml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4e7d6219..fdeb9890 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,26 +24,13 @@ jobs: strategy: fail-fast: false matrix: - java: [8, 11, 17] os: [ubuntu-latest, macos-latest, windows-latest] steps: - name: Checkout the repo uses: actions/checkout@v4 - # Install the target JDK first so Gradle's toolchain auto-detection can - # find it. This step sets JAVA_HOME__X64 env vars but does NOT - # set JAVA_HOME yet. - - name: Setup target JDK ${{ matrix.java }} - uses: actions/setup-java@v4 - with: - java-version: ${{ matrix.java }} - distribution: 'zulu' - - # Gradle 9.x requires JVM 17+. This second setup-java call overrides - # JAVA_HOME to Java 17 so the wrapper can start, while the target JDK - # installed above remains available for toolchain-based compilation. - - name: Setup Java 17 to run Gradle + - name: Setup Java 17 uses: actions/setup-java@v4 with: java-version: 17 From f971560e64b6765db4114e0a4e85dfb294c168ee Mon Sep 17 00:00:00 2001 From: Chris Tankersley Date: Mon, 4 May 2026 11:22:06 -0400 Subject: [PATCH 6/7] ci: Wire Gradle toolchain to matrix Java version via -PjavaTarget MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without a toolchain, the build_only matrix java: [8, 11, 17] was a no-op — Gradle always compiled with Java 17 regardless of the matrix value. Now: - build.gradle uses javaToolchains.compilerFor to compile main sources with the JDK matching javaTarget (default: 8) - For Java 9+, options.release enforces strict API compatibility - For Java 8, --release is unsupported by javac 8, so sourceCompatibility and targetCompatibility (both set to the target version) are used instead - CI passes -PjavaTarget=${{ matrix.java }} so each matrix entry actually compiles with a different JDK toolchain Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/build.yml | 16 ++++++++++++++-- build.gradle | 21 ++++++++++++++++----- 2 files changed, 30 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fdeb9890..f690bf26 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,13 +24,25 @@ jobs: strategy: fail-fast: false matrix: + java: [8, 11, 17] os: [ubuntu-latest, macos-latest, windows-latest] steps: - name: Checkout the repo uses: actions/checkout@v4 - - name: Setup Java 17 + # Install the target JDK first so Gradle's toolchain auto-detection can + # find it for compiling main sources via javaToolchains.compilerFor. + - name: Setup target JDK ${{ matrix.java }} + uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.java }} + distribution: 'zulu' + + # Gradle 9.x requires JVM 17+ to run. This overrides JAVA_HOME to Java 17 + # so the wrapper starts, while the target JDK above is used by the toolchain + # to compile main sources with -PjavaTarget=${{ matrix.java }}. + - name: Setup Java 17 to run Gradle uses: actions/setup-java@v4 with: java-version: 17 @@ -47,7 +59,7 @@ jobs: restore-keys: ${{ runner.os }}-gradle - name: Build with Gradle - run: ./gradlew build -x test + run: ./gradlew build -x test -PjavaTarget=${{ matrix.java }} test: runs-on: ${{ matrix.os }} diff --git a/build.gradle b/build.gradle index 974d1cfb..f0486bd1 100644 --- a/build.gradle +++ b/build.gradle @@ -38,18 +38,29 @@ dependencies { implementation 'org.bitbucket.b_c:jose4j:0.9.6' } +// The target Java version for compiling main sources. Pass -PjavaTarget=11 +// (or 17, etc.) on the command line to test against a different version. +// Defaults to 8, the minimum supported runtime version. +def targetJava = project.findProperty('javaTarget') ? Integer.parseInt(project.findProperty('javaTarget').toString()) : 8 + java { - sourceCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.toVersion(targetJava) targetCompatibility = sourceCompatibility } -// Enforce strict Java 8 API compatibility: --release 8 checks both bytecode -// version and API usage against the Java 8 class library, catching accidental -// use of Java 9+ APIs at compile time. +// Use the JDK matching targetJava via Gradle toolchains. For Java 9+, enforce +// API compatibility with --release. For Java 8, --release is not supported by +// javac 8, so sourceCompatibility/targetCompatibility (set above) suffice. compileJava { - options.release = 8 + javaCompiler = javaToolchains.compilerFor { + languageVersion = JavaLanguageVersion.of(targetJava) + } + if (targetJava >= 9) { + options.release = targetJava + } } +// Tests always compile and run on Java 21 regardless of the target version. compileTestJava { sourceCompatibility = JavaVersion.VERSION_21 targetCompatibility = sourceCompatibility From 87d0d8f3572d7309a5f2bbb67729b5f340d50dfa Mon Sep 17 00:00:00 2001 From: Chris Tankersley Date: Mon, 4 May 2026 11:25:54 -0400 Subject: [PATCH 7/7] fix: pass -PjavaTarget to Gradle in test job The test job was running ./gradlew build without -PjavaTarget, causing build.gradle to default to javaTarget=8 and look for a Java 8 toolchain that isn't installed. Pass the matrix Java version so the toolchain resolves to the JDK that's actually available. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f690bf26..ae643230 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -89,7 +89,7 @@ jobs: restore-keys: ${{ runner.os }}-gradle - name: Build with Gradle - run: ./gradlew build + run: ./gradlew build -PjavaTarget=${{ matrix.java }} - name: Run Codecov uses: codecov/codecov-action@v4