diff options
author | Luck <git@lucko.me> | 2018-11-02 22:25:54 +0000 |
---|---|---|
committer | Luck <git@lucko.me> | 2018-11-02 22:25:54 +0000 |
commit | a235a054532c3d403f083be7662b7a796a309159 (patch) | |
tree | ff390945daaa3f38119ed7fc6e7f91053a1e4a81 /spark-common | |
parent | 7a60c09a9783f25d297aad063e087354b95aaa21 (diff) | |
download | spark-a235a054532c3d403f083be7662b7a796a309159.tar.gz spark-a235a054532c3d403f083be7662b7a796a309159.tar.bz2 spark-a235a054532c3d403f083be7662b7a796a309159.zip |
Any negative line number is invalid
Diffstat (limited to 'spark-common')
-rw-r--r-- | spark-common/src/main/java/me/lucko/spark/sampler/node/StackTraceNode.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spark-common/src/main/java/me/lucko/spark/sampler/node/StackTraceNode.java b/spark-common/src/main/java/me/lucko/spark/sampler/node/StackTraceNode.java index ee9e985..8cbcd0f 100644 --- a/spark-common/src/main/java/me/lucko/spark/sampler/node/StackTraceNode.java +++ b/spark-common/src/main/java/me/lucko/spark/sampler/node/StackTraceNode.java @@ -64,7 +64,7 @@ public final class StackTraceNode extends AbstractNode implements Comparable<Sta protected void appendMetadata(JsonWriter writer) throws IOException { writer.name("cl").value(this.className); writer.name("m").value(this.methodName); - if (this.lineNumber != NULL_LINE_NUMBER) { + if (this.lineNumber >= 0) { writer.name("ln").value(this.lineNumber); } } |