Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
breedx-splk committed Jan 7, 2025
1 parent abedcf8 commit 4c980fa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ import java.time.Duration
internal class SessionIdTimeoutHandler(
private val clock: Clock,
private val sessionTimeout: Duration,
) :
ApplicationStateListener {
) : ApplicationStateListener {
@Volatile
private var timeoutStartNanos: Long = 0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,10 @@ internal class SessionManagerImpl(
fun create(
timeoutHandler: SessionIdTimeoutHandler,
sessionLifetimeNanos: Long,
): SessionManagerImpl {
return SessionManagerImpl(
): SessionManagerImpl =
SessionManagerImpl(
timeoutHandler = timeoutHandler,
sessionLifetimeNanos = sessionLifetimeNanos,
)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ internal class SessionManagerImplTest {
@Test
fun shouldCreateNewSessionIdAfterTimeout() {
val sessionId =
io.opentelemetry.android.internal.session.SessionManagerImpl(timeoutHandler = timeoutHandler)
io.opentelemetry.android.internal.session
.SessionManagerImpl(timeoutHandler = timeoutHandler)

val value = sessionId.getSessionId()
verify { timeoutHandler.bump() }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ package io.opentelemetry.android.session
* the SessionProvider and SessionPublisher interfaces under a common
* name.
*/
interface SessionManager : SessionProvider, SessionPublisher
interface SessionManager :
SessionProvider,
SessionPublisher

0 comments on commit 4c980fa

Please sign in to comment.