Skip to content

Commit 00f2c99

Browse files
committed
Merge branch 'markushi/fix/compose-110-api-changes' of github.com:getsentry/sentry-java into markushi/fix/compose-110-api-changes
2 parents 38865c2 + f188f6c commit 00f2c99

File tree

3 files changed

+356
-193
lines changed

3 files changed

+356
-193
lines changed

sentry-android-replay/src/main/java/io/sentry/android/replay/viewhierarchy/ComposeViewHierarchyNode.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ internal object ComposeViewHierarchyNode {
3939
private val getCollapsedSemanticsMethod: Method? by
4040
lazy(LazyThreadSafetyMode.NONE) {
4141
try {
42-
return@lazy LayoutNode::class.java.getDeclaredMethod("getCollapsedSemantics\$ui_release").apply {
43-
isAccessible = true
44-
}
42+
return@lazy LayoutNode::class
43+
.java
44+
.getDeclaredMethod("getCollapsedSemantics\$ui_release")
45+
.apply { isAccessible = true }
4546
} catch (_: Throwable) {
4647
// ignore, as this method may not be available
4748
}

sentry-compose/src/androidUnitTest/kotlin/androidx/compose/foundation/GestureModifierStubs.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package androidx.compose.foundation
33
import androidx.compose.ui.Modifier
44

55
/**
6-
* Stub classes used by [io.sentry.compose.gestures.ComposeGestureTargetLocatorTest] so that
7-
* Mockito mocks of these classes return the correct [Class.getName] values at runtime.
6+
* Stub classes used by [io.sentry.compose.gestures.ComposeGestureTargetLocatorTest] so that Mockito
7+
* mocks of these classes return the correct [Class.getName] values at runtime.
88
*/
99
internal open class ClickableElement : Modifier.Element
1010

0 commit comments

Comments
 (0)