From f254db4b55a7ab642253c4ada112180d3fb91690 Mon Sep 17 00:00:00 2001 From: Bartosz Litwiniuk <> Date: Thu, 24 Oct 2024 20:34:35 +0200 Subject: [PATCH] Add deprecated docs to BacktraceStackFrame constructors --- .../library/models/BacktraceStackFrame.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/backtrace-library/src/main/java/backtraceio/library/models/BacktraceStackFrame.java b/backtrace-library/src/main/java/backtraceio/library/models/BacktraceStackFrame.java index 1fae489a..bed1f1d9 100644 --- a/backtrace-library/src/main/java/backtraceio/library/models/BacktraceStackFrame.java +++ b/backtrace-library/src/main/java/backtraceio/library/models/BacktraceStackFrame.java @@ -39,11 +39,20 @@ public class BacktraceStackFrame { /** * Create new instance of BacktraceStackFrame + * + * @deprecated + * Use {@link #fromStackTraceElement(StackTraceElement frame)} instead. */ @SuppressWarnings({"UnusedDeclaration"}) + @Deprecated public BacktraceStackFrame() {} - + /** + * Create new instance of BacktraceStackFrame + * + * @deprecated + * Use {@link #fromStackTraceElement(StackTraceElement frame)} instead. + */ @Deprecated public BacktraceStackFrame(StackTraceElement frame) { BacktraceStackFrame obj = BacktraceStackFrame.fromStackTraceElement(frame);