buguge - Keep it simple,stupid

知识就是力量,但更重要的,是运用知识的能力why buguge?

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

统计

03 2023 档案

java reflection exception--can not access a member of class XXX with modifiers "private"
摘要:If you try to visit the value of an object's private field using reflection, such as Field#get or Field#set, you should call Field#setAccessible(true) ahead. 阅读全文

posted @ 2023-03-28 11:02 buguge 阅读(448) 评论(0) 推荐(0) 编辑

来说一个技术点,List作为参数数据丢失问题
摘要:当引用对象作为方法参数时,我们在方法内部只可更改内存中的内容,但不可变更内存地址。 阅读全文

posted @ 2023-03-24 16:56 buguge 阅读(215) 评论(0) 推荐(0) 编辑

IDEA Rebuild项目错误:Information:java: java.lang.AssertionError: Value of x -1
摘要:问题:java.lang.AssertionError: Value of x -1 模仿lombok工具,我的enumgen工具基本上写完了。 发布后准备投产时翻车了!公司的项目emax-rpcapi-list依赖enumgen后,IDEA Rebuild Project时,或者maven pac 阅读全文

posted @ 2023-03-21 13:52 buguge 阅读(210) 评论(0) 推荐(0) 编辑

利用Javac AST增强枚举功能
摘要:先就lombok开始本文 lombok想必大家都在使用。 lombok我们怎么用?——两步 Step1:程序添加lombok工具包的依赖。 Step2:IDE安装lombok插件。 就是说,我们需要两个东西:lombok工具(包) & lombok插件 lombok实现原理 1)lombok工具包 阅读全文

posted @ 2023-03-09 13:39 buguge 阅读(138) 评论(0) 推荐(0) 编辑

hard-coded strings are a bad idea.
摘要:Hard-Coding is a terribly bad practice. 阅读全文

posted @ 2023-03-06 20:00 buguge 阅读(26) 评论(0) 推荐(0) 编辑

sonar代码扫描bug:Use try-with-resources or close this "FileInputStream" in a "finally" clause.
摘要:try-with-resouces相当于显式在finally块里调用close方法 阅读全文

posted @ 2023-03-02 14:00 buguge 阅读(871) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示