Skip to content

Commit 91b890d

Browse files
committed
When determining where a call comes from, ignore com.diffplug.selfie.* and selfie.*
1 parent a5073e7 commit 91b890d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

jvm/selfie-lib/src/jvmMain/kotlin/com/diffplug/selfie/guts/WriteTracker.jvm.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2024 DiffPlug
2+
* Copyright (C) 2024-2025 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -55,7 +55,10 @@ actual data class CallLocation(
5555
/** Generates a CallLocation and the CallStack behind it. */
5656
internal actual fun recordCall(callerFileOnly: Boolean): CallStack =
5757
StackWalker.getInstance().walk { frames ->
58-
val framesWithDrop = frames.dropWhile { it.className.startsWith("com.diffplug.selfie") }
58+
val framesWithDrop =
59+
frames.dropWhile {
60+
it.className.startsWith("com.diffplug.selfie.") || it.className.startsWith("selfie.")
61+
}
5962
if (callerFileOnly) {
6063
val caller =
6164
framesWithDrop

0 commit comments

Comments
 (0)