Java忽略警告注解@SuppressWarnings

// 忽略在类路径,原文件路径中有不存在的路径的警告

@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实战笔记

关于这份笔记,为了不影响大家的阅读体验,我只能在文章中展示部分的章节内容和核心截图

image.png

  • Kafka入门
  • 为什么选择Kafka
  • Karka的安装、管理和配置

image.png

  • Kafka的集群
  • 第一个Kafka程序
  • image.png

afka的生产者

image.png

  • Kafka的消费者
  • 深入理解Kafka
  • 可靠的数据传递

image.png

image.png

  • Spring和Kalka的整合
  • Sprinboot和Kafka的整合
  • Kafka实战之削峰填谷
  • 数据管道和流式处理(了解即可)

image.png

  • Kafka实战之削峰填谷

image.png

  • 数据管道和流式处理(了解即可)

[外链图片转存中…(img-aCYBwnnx-1714371535432)]

  • Kafka实战之削峰填谷

[外链图片转存中…(img-mPT3nkr8-1714371535432)]

本文已被CODING开源项目:【一线大厂Java面试题解析+核心总结学习笔记+最新讲解视频+实战项目源码】收录

  • 4
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值