Skip to content

Commit 7d44dc5

Browse files
committed
Fix a typo and remove chekced exception annotation
1 parent d2c6e86 commit 7d44dc5

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

core/src/main/scala/org/apache/spark/SparkContext.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2061,9 +2061,8 @@ class SparkContext(config: SparkConf) extends Logging {
20612061
* Cancel a given job if it's scheduled or running.
20622062
*
20632063
* @param jobId the job ID to cancel
2064-
* @throws InterruptedException if the cancel message cannot be sent
2064+
* @note Throws `InterruptedException` if the cancel message cannot be sent
20652065
*/
2066-
@throws(classOf[InterruptedException])
20672066
def cancelJob(jobId: Int) {
20682067
dagScheduler.cancelJob(jobId)
20692068
}
@@ -2072,9 +2071,8 @@ class SparkContext(config: SparkConf) extends Logging {
20722071
* Cancel a given stage and all jobs associated with it.
20732072
*
20742073
* @param stageId the stage ID to cancel
2075-
* @throws InterruptedException if the cancel message cannot be sent
2074+
* @note Throws `InterruptedException` if the cancel message cannot be sent
20762075
*/
2077-
@throws(classOf[InterruptedException])
20782076
def cancelStage(stageId: Int) {
20792077
dagScheduler.cancelStage(stageId)
20802078
}

mllib/src/main/scala/org/apache/spark/mllib/tree/configuration/BoostingStrategy.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import org.apache.spark.mllib.tree.loss.{LogLoss, Loss, SquaredError}
3939
* If the current loss on the validation set is greater than 0.01, the diff
4040
* of validation error is compared to relative tolerance which is
4141
* validationTol * (current loss on the validation set).
42-
* If the current loss on the validation set is less than or euqal to 0.01,
42+
* If the current loss on the validation set is less than or equal to 0.01,
4343
* the diff of validation error is compared to absolute tolerance which is
4444
* validationTol * 0.01.
4545
* Ignored when

0 commit comments

Comments
 (0)