tmf: Remove function name from ITmfCallsite
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / event / lookup / ITmfCallsite.java
index 9ebd74ec47977537892a51855f40e7987e0141ce..146b87772a4627ea005fb89f74b1eb6e3ff2e959 100644 (file)
@@ -40,13 +40,28 @@ public interface ITmfCallsite {
      * Returns the function name of the call site.
      *
      * @return the function name or null
+     * @deprecated Should not be part of this interface anymore.
      */
+    @Deprecated
     @Nullable String getFunctionName();
 
     /**
      * Returns the line number of the call site.
      *
      * @return the line number
+     * @deprecated Use {@link #getLineNo()} instead, which can return null.
      */
+    @Deprecated
     long getLineNumber();
+
+    /**
+     * Returns the line number of the call site.
+     *
+     * @return The line number, or 'null' if unavailable
+     * @since 2.1
+     */
+    default @Nullable Long getLineNo() {
+        /* TODO Change to abstract method once getLineNumber() is removed */
+        return getLineNumber();
+    }
 }
This page took 0.0259 seconds and 5 git commands to generate.