Skip to content

Commit 1076946

Browse files
committed
Add note about reason for doing this (CR feedback from Andrew Or)
1 parent e2d518b commit 1076946

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/main/scala/org/apache/spark/executor/InputMetrics.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class InputMetrics private (
8383

8484
// Once incBytesRead & intRecordsRead is ready to be removed from the public API
8585
// we can remove the internal versions and make the previous public API private.
86+
// This has been done to suppress warnings when building.
8687
@deprecated("incrementing input metrics is for internal use only", "2.0.0")
8788
def incBytesRead(v: Long): Unit = _bytesRead.add(v)
8889
private[spark] def incBytesReadInternal(v: Long): Unit = _bytesRead.add(v)

0 commit comments

Comments
 (0)