MINOR: Remove unnecessary scalac warnings suppression (#12953)

Fix the underlying warnings instead.

Reviewers: Luke Chen <showuon@gmail.com>
This commit is contained in:
Ismael Juma 2022-12-05 06:20:23 -08:00 committed by GitHub
parent fc7fe8f765
commit 13c9c78a1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 6 deletions

View File

@ -653,9 +653,6 @@ subprojects {
"-Xlint:unused"
]
if (versions.baseScala == '2.13')
scalaCompileOptions.additionalParameters += ["-Wconf:msg=@nowarn annotation does not suppress any warnings:s"] // See https://github.com/scala/scala/pull/9960
// See README.md for details on this option and the meaning of each value
if (userScalaOptimizerMode.equals("method"))
scalaCompileOptions.additionalParameters += ["-opt:l:method"]

View File

@ -217,7 +217,7 @@ object LogConfig {
val PreAllocateEnableProp = TopicConfig.PREALLOCATE_CONFIG
/* See `TopicConfig.MESSAGE_FORMAT_VERSION_CONFIG` for details */
@deprecated("3.0") @nowarn("cat=deprecation")
@deprecated("3.0")
val MessageFormatVersionProp = TopicConfig.MESSAGE_FORMAT_VERSION_CONFIG
val MessageTimestampTypeProp = TopicConfig.MESSAGE_TIMESTAMP_TYPE_CONFIG
val MessageTimestampDifferenceMaxMsProp = TopicConfig.MESSAGE_TIMESTAMP_DIFFERENCE_MAX_MS_CONFIG
@ -252,7 +252,7 @@ object LogConfig {
val PreAllocateEnableDoc = TopicConfig.PREALLOCATE_DOC
/* See `TopicConfig.MESSAGE_FORMAT_VERSION_CONFIG` for details */
@deprecated("3.0") @nowarn("cat=deprecation")
@deprecated("3.0")
val MessageFormatVersionDoc = TopicConfig.MESSAGE_FORMAT_VERSION_DOC
val MessageTimestampTypeDoc = TopicConfig.MESSAGE_TIMESTAMP_TYPE_DOC

View File

@ -572,7 +572,6 @@ object KafkaConfig {
val MetricReporterClassesProp: String = CommonClientConfigs.METRIC_REPORTER_CLASSES_CONFIG
val MetricRecordingLevelProp: String = CommonClientConfigs.METRICS_RECORDING_LEVEL_CONFIG
@deprecated
@nowarn("cat=deprecation")
val AutoIncludeJmxReporterProp: String = CommonClientConfigs.AUTO_INCLUDE_JMX_REPORTER_CONFIG
/** ********* Kafka Yammer Metrics Reporters Configuration ***********/