// 忽略在类路径,原文件路径中有不存在的路径的警告
@SuppressWarnings(“path”)
// 忽略使用了某些不赞成使用的类和方法的警告
@SuppressWarnings(“deprecation”)
// 忽略switch语句执行到底没有break关键字的警告
@SuppressWarnings(“fallthrough”)
// 忽略某类实现Serializable,但是没有定义serialVersionUID的警告
@SuppressWarnings(“serial”)
// 忽略没有传递带有泛型的参数的警告
@SuppressWarnings(“rawtypes”)
源码
=======
package java.lang;
import java.lang.annotation.*;
import static java.lang.annotation.ElementType.*;
/**
-
Indicates that the named compiler warnings should be suppressed in the
-
annotated element (and in all program elements contained in the annotated
-
element). Note that the set of warnings suppressed in a given element is
-
a superset of the warnings suppressed in all containing elements. For
-
example, if you annotate a class to suppress one warning and annotate a
-
method to suppress another, both warnings will be suppressed in the method.
-
As a matter of style, programmers should always use this annotation
-
on the most deeply nested element where it is effective. If you want to
-
suppress a warning in a particular method, you should annotate that
-
method rather than its class.
-
@author Josh Bloch
-
@since 1.5
-
@jls 4.8 Raw Types
-
@jls 4.12.2 Variables of Reference Type
-
@jls 5.1.9 Unchecked Conversion
-
@jls 5.5.2 Checked Casts and Unchecked Casts
-
@jls 9.6.3.5 @SuppressWarnings
*/
Kafka实战笔记
关于这份笔记,为了不影响大家的阅读体验,我只能在文章中展示部分的章节内容和核心截图
- Kafka入门
- 为什么选择Kafka
- Karka的安装、管理和配置
- Kafka的集群
- 第一个Kafka程序
afka的生产者
- Kafka的消费者
- 深入理解Kafka
- 可靠的数据传递
- Spring和Kalka的整合
- Sprinboot和Kafka的整合
- Kafka实战之削峰填谷
- 数据管道和流式处理(了解即可)
- Kafka实战之削峰填谷
- 数据管道和流式处理(了解即可)
[外链图片转存中…(img-aCYBwnnx-1714371535432)]
- Kafka实战之削峰填谷
[外链图片转存中…(img-mPT3nkr8-1714371535432)]