Use String instead of Class for the flowClass (#1270)

This commit is contained in:
mkit 2017-08-17 12:59:24 +01:00 committed by GitHub
parent 4eb58b874a
commit 204b2fc556
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ import java.time.Instant
*/
data class FlowStackSnapshot(
val time: Instant,
val flowClass: Class<out FlowLogic<*>>,
val flowClass: String,
val stackFrames: List<Frame>
) {
data class Frame(

View File

@ -73,7 +73,7 @@ class FlowStackSnapshotFactoryImpl : FlowStackSnapshotFactory {
}
Frame(element, stackObjects)
}
return FlowStackSnapshot(Instant.now(), flowClass, frames)
return FlowStackSnapshot(Instant.now(), flowClass.name, frames)
}
private val StackTraceElement.instrumentedAnnotation: Instrumented? get() {