mirror of https://github.com/apache/kafka.git
MINOR: Remove unnecessary scalac warnings suppression (#12953)
Fix the underlying warnings instead. Reviewers: Luke Chen <showuon@gmail.com>
This commit is contained in:
parent
fc7fe8f765
commit
13c9c78a1f
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 ***********/
|
||||
|
|
|
|||
Loading…
Reference in New Issue