diff --git a/splunk-otel-android/src/main/java/com/splunk/rum/StartTypeAwareSpanStorage.java b/splunk-otel-android/src/main/java/com/splunk/rum/StartTypeAwareSpanStorage.java index edd70d214..eb33a385b 100644 --- a/splunk-otel-android/src/main/java/com/splunk/rum/StartTypeAwareSpanStorage.java +++ b/splunk-otel-android/src/main/java/com/splunk/rum/StartTypeAwareSpanStorage.java @@ -37,8 +37,10 @@ public class StartTypeAwareSpanStorage implements SpanStorage { private final File rootDir; private final File spanDir; - static StartTypeAwareSpanStorage create(VisibleScreenTracker visibleScreenTracker, FileUtils fileUtils, File rootDir){ - StartTypeAwareSpanStorage startTypeAwareSpanStorage = new StartTypeAwareSpanStorage(visibleScreenTracker, fileUtils, rootDir); + static StartTypeAwareSpanStorage create( + VisibleScreenTracker visibleScreenTracker, FileUtils fileUtils, File rootDir) { + StartTypeAwareSpanStorage startTypeAwareSpanStorage = + new StartTypeAwareSpanStorage(visibleScreenTracker, fileUtils, rootDir); startTypeAwareSpanStorage.cleanupUnsentBackgroundSpans(); return startTypeAwareSpanStorage; } diff --git a/splunk-otel-android/src/test/java/com/splunk/rum/StartTypeAwareSpanStorageTest.java b/splunk-otel-android/src/test/java/com/splunk/rum/StartTypeAwareSpanStorageTest.java index 6498e8fb9..5cb436743 100644 --- a/splunk-otel-android/src/test/java/com/splunk/rum/StartTypeAwareSpanStorageTest.java +++ b/splunk-otel-android/src/test/java/com/splunk/rum/StartTypeAwareSpanStorageTest.java @@ -71,7 +71,8 @@ void getPendingFiles_givenInBackground_shouldReturnForegoundOnlySpan() { } @Test - void getPendingFiles_givenPrevouslyInBackground_shouldMoveBackgroundSpanToForegroundSpanForSending() { + void + getPendingFiles_givenPrevouslyInBackground_shouldMoveBackgroundSpanToForegroundSpanForSending() { when(visibleScreenTracker.getPreviouslyVisibleScreen()).thenReturn("LauncherActivity"); when(visibleScreenTracker.getCurrentlyVisibleScreen()).thenReturn("MainActivity");