From 62787577dbfb62b724d0ac4de01aa2f8362d72ba Mon Sep 17 00:00:00 2001 From: David Steinacher Date: Mon, 26 Aug 2024 09:27:35 +0200 Subject: [PATCH] remove unintentionally public initializers * add changelog entry --- CHANGELOG.md | 3 ++ .../conviva/ConvivaAnalyticsIntegration.java | 44 ++++++------------- 2 files changed, 17 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5416f26..e9f61bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [Unreleased] +### Fixed +- Remove unintentionally public initializers from `ConvivaAnalyticsIntegration` which were not intended to be public and only meant for testing ## 2.6.0 - 2024-08-13 ### Added diff --git a/conviva/src/main/java/com/bitmovin/analytics/conviva/ConvivaAnalyticsIntegration.java b/conviva/src/main/java/com/bitmovin/analytics/conviva/ConvivaAnalyticsIntegration.java index 2c5d86f..c7960cb 100644 --- a/conviva/src/main/java/com/bitmovin/analytics/conviva/ConvivaAnalyticsIntegration.java +++ b/conviva/src/main/java/com/bitmovin/analytics/conviva/ConvivaAnalyticsIntegration.java @@ -57,42 +57,26 @@ public ConvivaAnalyticsIntegration(Player player, String customerKey, Context co this(player, customerKey, context, new ConvivaConfig()); } - public ConvivaAnalyticsIntegration(Player player, - String customerKey, - Context context, - ConvivaConfig config) { - this(player, customerKey, context, config, null); - } - - public ConvivaAnalyticsIntegration(Player player, - String customerKey, - Context context, - ConvivaConfig config, - ConvivaVideoAnalytics videoAnalytics + public ConvivaAnalyticsIntegration( + Player player, + String customerKey, + Context context, + ConvivaConfig config ) { - this(player, customerKey, context, config, videoAnalytics, null); - } - - public ConvivaAnalyticsIntegration(Player player, - String customerKey, - Context context, - ConvivaConfig config, - ConvivaVideoAnalytics videoAnalytics, - ConvivaAdAnalytics adAnalytics - ) { - this(player, customerKey, context, config, videoAnalytics, adAnalytics, null); + this(player, customerKey, context, config, null, null, null); } /** * For testing purposes only. */ - ConvivaAnalyticsIntegration(Player player, - String customerKey, - Context context, - ConvivaConfig config, - ConvivaVideoAnalytics videoAnalytics, - ConvivaAdAnalytics adAnalytics, - DefaultSsaiApi ssai + ConvivaAnalyticsIntegration( + Player player, + String customerKey, + Context context, + ConvivaConfig config, + ConvivaVideoAnalytics videoAnalytics, + ConvivaAdAnalytics adAnalytics, + DefaultSsaiApi ssai ) { this.bitmovinPlayer = player; this.playerHelper = new BitmovinPlayerHelper(player);