From efc76ad2fa2f1feb44e0a1ca35a684b85e6514da Mon Sep 17 00:00:00 2001 From: David Steinacher Date: Sat, 24 Aug 2024 11:56:28 +0200 Subject: [PATCH] fix some code style issues --- .../com/bitmovin/analytics/conviva/DefaultPlayerAdapter.java | 1 - .../bitmovin/analytics/conviva/helper/WithEventEmitter.java | 2 +- .../com/bitmovin/analytics/conviva/ssai/DefaultSsaiApiTest.kt | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/conviva/src/main/java/com/bitmovin/analytics/conviva/DefaultPlayerAdapter.java b/conviva/src/main/java/com/bitmovin/analytics/conviva/DefaultPlayerAdapter.java index ee99ef7..2452d62 100644 --- a/conviva/src/main/java/com/bitmovin/analytics/conviva/DefaultPlayerAdapter.java +++ b/conviva/src/main/java/com/bitmovin/analytics/conviva/DefaultPlayerAdapter.java @@ -94,7 +94,6 @@ public long getPlayHeadTimeMillis() { double playerTimeShift = player.getTimeShift(); long playerDurationMs = -(Math.round(playerTimeShiftMax * 1000)); return playerDurationMs - -(Math.round(playerTimeShift * 1000)); - } else { double currentTime = player.getCurrentTime(); return (long) (currentTime * 1000); diff --git a/conviva/src/main/java/com/bitmovin/analytics/conviva/helper/WithEventEmitter.java b/conviva/src/main/java/com/bitmovin/analytics/conviva/helper/WithEventEmitter.java index bc232b2..6a342b3 100644 --- a/conviva/src/main/java/com/bitmovin/analytics/conviva/helper/WithEventEmitter.java +++ b/conviva/src/main/java/com/bitmovin/analytics/conviva/helper/WithEventEmitter.java @@ -5,4 +5,4 @@ public interface WithEventEmitter { void call(JavaEventEmitter player); -} \ No newline at end of file +} diff --git a/conviva/src/test/kotlin/com/bitmovin/analytics/conviva/ssai/DefaultSsaiApiTest.kt b/conviva/src/test/kotlin/com/bitmovin/analytics/conviva/ssai/DefaultSsaiApiTest.kt index 6c3c45e..f4d817e 100644 --- a/conviva/src/test/kotlin/com/bitmovin/analytics/conviva/ssai/DefaultSsaiApiTest.kt +++ b/conviva/src/test/kotlin/com/bitmovin/analytics/conviva/ssai/DefaultSsaiApiTest.kt @@ -53,8 +53,8 @@ class DefaultSsaiApiTest { } ssaiApi = DefaultSsaiApi( - videoAnalytics, - adAnalytics, + videoAnalytics, + adAnalytics, playerAdapter, ) }